From ecbddde66a11aec8c4ccc967a38bce45ac7ce699 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 27 Oct 2008 20:29:08 +0000 Subject: Remove user no longer being watched, not the quitting one. Fix from Szymek (thanks), tested by Darom. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10728 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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 6e9ab6a58..acc63fd40 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -459,7 +459,7 @@ class Modulewatch : public Module i2->second.erase(n); if (!i2->second.size()) - whos_watching_me->erase(user->nick.c_str()); + whos_watching_me->erase(x); } } -- cgit v1.2.3