summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-25 09:51:49 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-25 09:51:49 +0000
commit1d029df57061524a1d30a6ffaa3fdee37181d638 (patch)
treea237df1ff5380b1ef408eeb57d8a69f037158ddf /src
parent6550242735047783301150f3551174797dddc7f5 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_watch.cpp6
1 files 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++;