summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-08 18:26:12 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-08 18:26:12 +0000
commit02203e5243b18b9044320ecf291c3948cc80b150 (patch)
treee630cf60e47c9c843f6f4c90d8f3b4cabb3e97b0
parent7db4aae14db7917133beb70f5513a6cc73647432 (diff)
Removed some debug stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@798 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules.cpp3
-rw-r--r--src/modules/m_services.cpp6
2 files changed, 2 insertions, 7 deletions
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;
}
}