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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user