From 66ad87a0ec71370c15b065728b398f1aef8a11d8 Mon Sep 17 00:00:00 2001 From: aquanight Date: Fri, 17 Oct 2008 17:17:45 +0000 Subject: Patch from dz for bug #620, thanks. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10652 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_callerid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp index 623f838e3..34e41cb44 100644 --- a/src/modules/m_callerid.cpp +++ b/src/modules/m_callerid.cpp @@ -330,7 +330,7 @@ public: return 0; callerid_data* dat = GetData(dest, true); - std::set::iterator i = dat->accepting.find(dest); + std::set::iterator i = dat->accepting.find(user); if (i == dat->accepting.end()) { @@ -340,7 +340,7 @@ public: if (now > (dat->lastnotify + (time_t)notify_cooldown)) { user->WriteNumeric(717, "%s %s :has been informed that you messaged them.", user->nick.c_str(), dest->nick.c_str()); - dest->WriteNumeric(718, "%s %s %s@%s :is messaging you, and you have umode +g", dest->nick.c_str(), user->nick.c_str(), user->ident.c_str(), user->dhost.c_str()); + dest->WriteNumeric(718, "%s %s %s@%s :is messaging you, and you have umode +g. Use /ACCEPT +%s to allow.", dest->nick.c_str(), user->nick.c_str(), user->ident.c_str(), user->dhost.c_str(), user->nick.c_str()); dat->lastnotify = now; } return 1; -- cgit v1.2.3