From a8c28b88ee411300d2138731da39ce448f9652d7 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 26 Feb 2006 12:36:38 +0000 Subject: Warning fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3336 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_operwho.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3