}
}
}
- if (!strcasecmp(nick,"L"))
+ else if (!strcasecmp(nick,"L"))
{
for (watchlist::iterator q = watches.begin(); q != watches.end(); q++)
{
}
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++)
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++;
Srv->AddCommand("WATCH",handle_watch,0,0,"m_watch.so");
}
- virtual void OnUserQuit(userrec* user)
+ virtual void OnUserQuit(userrec* user, std::string reason)
{
log(DEBUG,"*** WATCH: On global quit: user %s",user->nick);
irc::string n2 = user->nick;