]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_watch.cpp
m_spanningtree Add overload for add() and has_room(), giving more flexibility to...
[user/henk/code/inspircd.git] / src / modules / m_watch.cpp
index 94292e4bee930135a61c2454ac465b378ad800f6..9cb31a6d88e3460bbc7fc042ce851d3bc2fe3cfd 100644 (file)
@@ -156,9 +156,6 @@ class CommandWatch : public Command
                        /* Yup, is on my list */
                        watchlist::iterator n = wl->find(nick);
 
-                       if (!wl)
-                               return CMD_FAILURE;
-
                        if (n != wl->end())
                        {
                                if (!n->second.empty())
@@ -207,7 +204,7 @@ class CommandWatch : public Command
                        ext.set(user, wl);
                }
 
-               if (wl->size() == MAX_WATCH)
+               if (wl->size() >= MAX_WATCH)
                {
                        user->WriteNumeric(512, "%s :Too many WATCH entries", nick);
                        return CMD_FAILURE;