1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 20:53:13 +02:00

Fixed sending CHANINFO on ngIRCd with two parameters if the channel has no modes locked.

This commit is contained in:
Adam
2011-03-09 12:28:24 -05:00
parent e9aa04a8f4
commit 8db5ecd736
+4 -1
View File
@@ -132,7 +132,10 @@ class ngIRCdProto : public IRCDProto
void SendChannel(Channel *c)
{
send_cmd(Config->ServerName, "CHANINFO %s %s", c->name.c_str(), get_mlock_modes(c->ci, true).c_str());
Anope::string mlock_modes = get_mlock_modes(c->ci, true);
if (mlock_modes.empty())
mlock_modes = "+";
send_cmd(Config->ServerName, "CHANINFO %s %s", c->name.c_str(), mlock_modes.c_str());
}
void SendTopic(BotInfo *bi, Channel *c)
{