From 1d029df57061524a1d30a6ffaa3fdee37181d638 Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 25 Nov 2005 09:51:49 +0000 Subject: [PATCH] My first commit -- and a really minor/anal one at that. :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1931 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_watch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index f613acda3..008aada57 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -79,7 +79,7 @@ void handle_watch(char **parameters, int pcnt, userrec *user) } } } - if (!strcasecmp(nick,"L")) + else if (!strcasecmp(nick,"L")) { for (watchlist::iterator q = watches.begin(); q != watches.end(); q++) { @@ -94,7 +94,7 @@ void handle_watch(char **parameters, int pcnt, userrec *user) } WriteServ(user->fd,"607 %s :End of WATCH list",user->nick); } - if (!strcasecmp(nick,"S")) + else if (!strcasecmp(nick,"S")) { std::string list = ""; for (watchlist::iterator q = watches.begin(); q != watches.end(); q++) @@ -110,7 +110,7 @@ void handle_watch(char **parameters, int pcnt, userrec *user) WriteServ(user->fd,"606 %s :%s",user->nick,l); WriteServ(user->fd,"607 %s :End of WATCH S",user->nick); } - if (nick[0] == '-') + else if (nick[0] == '-') { // removing an item from the list nick++; -- 2.39.5