From 02203e5243b18b9044320ecf291c3948cc80b150 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 8 May 2004 18:26:12 +0000 Subject: Removed some debug stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@798 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 3 --- src/modules/m_services.cpp | 6 ++---- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/modules.cpp b/src/modules.cpp index 23b45e8aa..73f3ba69a 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -187,7 +187,6 @@ bool ModeDefined(char modechar, int type) log(DEBUG,"Size of extmodes vector is %d",EMode.size()); for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) { - log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type); if ((i->modechar == modechar) && (i->type == type)) { return true; @@ -201,7 +200,6 @@ bool ModeIsListMode(char modechar, int type) log(DEBUG,"Size of extmodes vector is %d",EMode.size()); for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) { - log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type); if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) { return true; @@ -215,7 +213,6 @@ bool ModeDefinedOper(char modechar, int type) log(DEBUG,"Size of extmodes vector is %d",EMode.size()); for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) { - log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type); if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) { return true; diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp index 4202da2d0..bf6d897d9 100644 --- a/src/modules/m_services.cpp +++ b/src/modules/m_services.cpp @@ -8,11 +8,9 @@ /* $ModDesc: Povides support for services +r user/chan modes and more */ -Server *Srv; - - class ModuleServices : public Module { + Server *Srv; public: ModuleServices() { @@ -156,7 +154,7 @@ class ModuleServices : public Module return 0; } // joining a +R channel and not identified - Srv->SendServ(user->fd,"477 "+std::string(user->nick)+" "+std::string(c->name)+" :You need a registered nickname to join this channel"); + Srv->SendServ(user->fd,"477 "+std::string(user->nick)+" "+std::string(chan->name)+" :You need a registered nickname to join this channel"); return 1; } } -- cgit v1.2.3