From b3c49556ab0b28c1bcadb031c398a9c160720f07 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 30 Apr 2014 20:27:59 +0000 Subject: - 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 --- modules/m_watch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') 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); -- cgit