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:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user