summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-26 12:36:38 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-26 12:36:38 +0000
commita8c28b88ee411300d2138731da39ce448f9652d7 (patch)
tree63757a20526f6ebcd589b454f08d947769b58196 /src
parent48637fb5f5f91c8dc3f072f0161879e67e81a302 (diff)
Warning fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3336 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_operwho.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_operwho.cpp b/src/modules/m_operwho.cpp
index 5fbd87a28..7842fd08f 100644
--- a/src/modules/m_operwho.cpp
+++ b/src/modules/m_operwho.cpp
@@ -126,7 +126,6 @@ class ModuleOperWho : public Module
Ptr = FindChan(parameters[0]);
if (Ptr)
{
- int n_list = 0;
for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
{
if ((has_channel(i->second,Ptr)) && (isnick(i->second->nick)))
@@ -150,6 +149,7 @@ class ModuleOperWho : public Module
{
WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, parameters[0]);
}
+ return 1;
}
else
{
@@ -168,6 +168,7 @@ class ModuleOperWho : public Module
: "*", u->ident, u->dhost, u->server, u->nick, tmp, u->fullname);
}
WriteServ(user->fd,"315 %s %s :End of /WHO list.",user->nick, parameters[0]);
+ return 1;
}
}
if (pcnt == 2)
@@ -192,6 +193,7 @@ class ModuleOperWho : public Module
return 1;
}
}
+ return 0;
}
virtual ~ModuleOperWho()