summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-04-30 20:27:59 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-04-30 20:27:59 +0000
commitb3c49556ab0b28c1bcadb031c398a9c160720f07 (patch)
tree99e8f1763d0254b6e3ae16f78a71b050ab293e36 /modules
parenta3cc519f08f5185313edf7da7dd18b33c75c3e41 (diff)
- Fixed possible WATCH core. Fix provided by Adam
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3426 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r--modules/m_watch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/m_watch.c b/modules/m_watch.c
index 1c84613..7841f78 100644
--- a/modules/m_watch.c
+++ b/modules/m_watch.c
@@ -103,7 +103,8 @@ m_watch(struct Client *client_p, struct Client *source_p, int parc, char *parv[]
continue;
}
- watch_add_to_hash_table(s + 1, source_p);
+ if (valid_nickname(s + 1, 1))
+ watch_add_to_hash_table(s + 1, source_p);
}
show_watch(source_p, s + 1, RPL_NOWON, RPL_NOWOFF);