mirror of
https://github.com/anope/anope.git
synced 2026-06-25 03:06:37 +02:00
If a PRIVMSG or NOTICE is empty then send a single space instead.
Currently a bunch of code does source.Reply(" ") to ensure that an
empty line gets rendered but this is a much better way to handle
this problem.
The code that does this already will be updated in a future commit
to avoid breaking translations in progress.
This commit is contained in:
+2
-2
@@ -119,12 +119,12 @@ void IRCDProto::SendKick(const MessageSource &source, const Channel *c, User *u,
|
||||
|
||||
void IRCDProto::SendNoticeInternal(const MessageSource &source, const Anope::string &dest, const Anope::string &msg, const Anope::map<Anope::string> &tags)
|
||||
{
|
||||
Uplink::Send(tags, source, "NOTICE", dest, msg);
|
||||
Uplink::Send(tags, source, "NOTICE", dest, msg.empty() ? " " : msg);
|
||||
}
|
||||
|
||||
void IRCDProto::SendPrivmsgInternal(const MessageSource &source, const Anope::string &dest, const Anope::string &msg, const Anope::map<Anope::string> &tags)
|
||||
{
|
||||
Uplink::Send(tags, source, "PRIVMSG", dest, msg);
|
||||
Uplink::Send(tags, source, "PRIVMSG", dest, msg.empty() ? " " : msg);
|
||||
}
|
||||
|
||||
void IRCDProto::SendQuit(User *u, const Anope::string &buf)
|
||||
|
||||
Reference in New Issue
Block a user