1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 18:23:14 +02:00

Send privmsgs and notices to uids if applicable

This commit is contained in:
Adam
2012-10-09 19:33:24 -04:00
parent 8f5d786f0e
commit 2113494274
+2 -2
View File
@@ -299,9 +299,9 @@ void User::SendMessage(const BotInfo *source, const Anope::string &msg)
while (sep.GetToken(tok))
{
if (Config->UsePrivmsg && ((!this->nc && Config->NSDefFlags.HasFlag(NI_MSG)) || (this->nc && this->nc->HasFlag(NI_MSG))))
ircdproto->SendPrivmsg(source, this->nick, "%s", tok.c_str());
ircdproto->SendPrivmsg(source, this->GetUID(), "%s", tok.c_str());
else
ircdproto->SendNotice(source, this->nick, "%s", tok.c_str());
ircdproto->SendNotice(source, this->GetUID(), "%s", tok.c_str());
}
}