aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar dz2008-11-03 22:42:50 +0000
committerGravatar dz2008-11-03 22:42:50 +0000
commitdc1cfe25cde2e66ecb1cfddce3388a4d2e1a809c (patch)
treebefbd45c29bd5c5cf4717ebdf842c01b4f33838f /src
parentFix an uninitialised variable in ConfigReader::GetError() (diff)
Backport r10791, m_watch was deleting the wrong user's watcher list
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10794 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_watch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp
index a345bfc13..d9c568b92 100644
--- a/src/modules/m_watch.cpp
+++ b/src/modules/m_watch.cpp
@@ -244,7 +244,7 @@ class cmd_watch : public command_t
x->second.erase(n);
if (!x->second.size())
- whos_watching_me->erase(user->nick);
+ whos_watching_me->erase(x);
}
}
@@ -368,7 +368,7 @@ class Modulewatch : public Module
x->second.erase(n);
if (!x->second.size())
- whos_watching_me->erase(user->nick);
+ whos_watching_me->erase(x);
}
}