summaryrefslogtreecommitdiff
path: root/modules/m_watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_watch.c')
-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);