When there is a user notification message, such as one of your friends entering the server, joining a game, leaving a game, or leaving a server, the message is sent by the server name, instead of the user triggering the event, which Battle.net does.

This allows the /r command to go to the user triggering the event.
http://developer.berlios.de/bugs/?func=detailbug&bug_id=15327&group_id=2291
This commit is contained in:
HarpyWar 2014-04-15 18:09:16 +04:00
parent e86b6701e4
commit 33dec83146

View file

@ -181,7 +181,7 @@ namespace pvpgn
else {
cnt++; /* keep track of successful whispers */
if (friend_get_mutual(fr))
message_send_text(dest_c, message_type_whisper, NULL, msg);
message_send_text(dest_c, message_type_whisper, my_c, msg);
}
}
}
@ -212,7 +212,7 @@ namespace pvpgn
{
if (it->getOwner() && (!it->getAccount() || it->getAccount() == account) && (!it->getClientTag() || (clienttag == it->getClientTag())) && (it->getEventMask() & event))
{
message_send_text(it->getOwner(), message_type_whisper, NULL, msg);
message_send_text(it->getOwner(), message_type_whisper, my_c, msg);
}
}