]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Warning fixes
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 26 Feb 2006 12:36:38 +0000 (12:36 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 26 Feb 2006 12:36:38 +0000 (12:36 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3336 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_operwho.cpp

index 5fbd87a289ead42b021896f23b9d8ecc204d39ec..7842fd08fd8251add58941a0b4cc81db4e46f885 100644 (file)
@@ -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()