diff options
| author | Adam <Adam@anope.org> | 2012-10-09 19:33:24 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-10-09 19:33:24 -0400 |
| commit | 2113494274801983e1c858396e8847156a236c3d (patch) | |
| tree | b5fd54fb17ceb53e65cbb9807b0a8808c81c4bf9 /src | |
| parent | 8f5d786f0eaec17dd2cb60f3dfb434caabf48e92 (diff) | |
Send privmsgs and notices to uids if applicable
Diffstat (limited to 'src')
| -rw-r--r-- | src/users.cpp | 4 |
1 files 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()); } } |
