1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 13:13:12 +02:00

Messaging service@server.name works again as it should

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2737 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2010-01-06 21:30:22 +00:00
parent 9124a3be53
commit e34448092e
+7 -4
View File
@@ -148,13 +148,16 @@ int m_privmsg(const char *source, const std::string &receiver, const char *msg)
/* If a server is specified (nick@server format), make sure it matches
* us, and strip it off. */
unsigned s = receiver.find('@');
std::string botname = receiver;
size_t s = receiver.find('@');
if (s != std::string::npos)
{
ci::string servername(receiver.begin() + s, receiver.end());
ci::string servername(receiver.begin() + s + 1, receiver.end());
botname = botname.erase(s);
if (servername != Config.ServerName)
return MOD_CONT;
} else if (Config.UseStrictPrivMsg) {
}
else if (Config.UseStrictPrivMsg) {
if (debug) {
alog("Ignored PRIVMSG without @ from %s", source);
}
@@ -165,7 +168,7 @@ int m_privmsg(const char *source, const std::string &receiver, const char *msg)
starttime = time(NULL);
bi = findbot(receiver);
bi = findbot(botname);
if (bi)
{