mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09:03 -04:00
Patch from dz for bug #620, thanks.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10652 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
d164d06d1a
commit
66ad87a0ec
@ -330,7 +330,7 @@ public:
|
||||
return 0;
|
||||
|
||||
callerid_data* dat = GetData(dest, true);
|
||||
std::set<User*>::iterator i = dat->accepting.find(dest);
|
||||
std::set<User*>::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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user