1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-29 18:26:38 +02:00

Made it so WATCH will not respond with an erroneous reply if the parameter was simply + or -

This commit is contained in:
codemastr
2004-09-04 04:26:18 +00:00
parent 165386a44b
commit cbc3eea61e
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -439,6 +439,8 @@ CMD_FUNC(m_watch)
*/
if (*s == '+')
{
if (!*(s+1))
continue;
if (do_nick_name(s + 1))
{
if (sptr->watches >= MAXWATCH)
@@ -463,6 +465,8 @@ CMD_FUNC(m_watch)
*/
if (*s == '-')
{
if (!*(s+1))
continue;
del_from_watch_hash_table(s + 1, sptr);
show_watch(sptr, s + 1, RPL_WATCHOFF, RPL_WATCHOFF);