From 2113494274801983e1c858396e8847156a236c3d Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 9 Oct 2012 19:33:24 -0400 Subject: [PATCH] Send privmsgs and notices to uids if applicable --- src/users.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/users.cpp b/src/users.cpp index a68c03739..603c22745 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -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()); } }