From 4ded5ca9280d8538cb4aa8f478021476a5643e5c Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 12 Apr 2014 22:38:34 +0200 Subject: m_watch Be more strict when checking whether the watch list of a user is full After a rehash MAX_WATCH can become lower than it was before --- src/modules/m_watch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_watch.cpp') diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index 0e532d65b..be05d7d2d 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -214,7 +214,7 @@ class CommandWatch : public Command ext.set(user, wl); } - if (wl->size() == MAX_WATCH) + if (wl->size() >= MAX_WATCH) { user->WriteNumeric(512, "%s %s :Too many WATCH entries", user->nick.c_str(), nick); return CMD_FAILURE; -- cgit v1.2.3