1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-27 00:16: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
+2
View File
@@ -338,3 +338,5 @@
- Added documentation for link::ciphers to unreal32docs.html (#0002019) reported by Bugz.
- Updated documentation to reflect that cmode +M allows voiced users to talk, not just
registered users (#0002020) reported by crazy.
- Made it so WATCH will not respond with an erroneous reply if the parameter was simply + or -
(#0002017) reported by GouraudShading.
+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);