1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 18:56:37 +02:00

Clean up ngircd proto mod slightly, and send sqlines before introducing clients

This commit is contained in:
Adam
2012-10-30 15:50:39 -04:00
parent 1ef7480380
commit b07928eea9
5 changed files with 18 additions and 21 deletions
+3 -8
View File
@@ -45,8 +45,6 @@ class ngIRCdProto : public IRCDProto
void SendClientIntroduction(const User *u) anope_override
{
Anope::string modes = "+" + u->GetModes();
XLine x(u->nick, "Reserved for services");
ircdproto->SendSQLine(NULL, &x);
UplinkSocket::Message(Me) << "NICK " << u->nick << " 1 " << u->GetIdent() << " " << u->host << " 1 " << modes << " :" << u->realname;
}
@@ -106,9 +104,9 @@ class ngIRCdProto : public IRCDProto
UplinkSocket::Message(bi) << "KICK " << chan->name << " " << user->nick;
}
void SendLogin(User *u) { } anope_override
void SendLogin(User *u) anope_override { }
void SendLogout(User *u) { } anope_override
void SendLogout(User *u) anope_override { }
void SendModeInternal(const BotInfo *bi, const Channel *dest, const Anope::string &buf) anope_override
{
@@ -180,7 +178,7 @@ struct IRCDMessage005 : IRCDMessage
unsigned newlen = convertTo<unsigned>(data);
if (Config->NickLen != newlen)
{
Log() << "Config->NickLen changed from " << Config->NickLen << " to " << newlen;
Log() << "NickLen changed from " << Config->NickLen << " to " << newlen;
Config->NickLen = newlen;
}
}
@@ -190,7 +188,6 @@ struct IRCDMessage005 : IRCDMessage
}
};
struct IRCDMessage376 : IRCDMessage
{
IRCDMessage376() : IRCDMessage("376", 2) { }
@@ -209,8 +206,6 @@ struct IRCDMessage376 : IRCDMessage
}
};
struct IRCDMessageChaninfo : IRCDMessage
{
IRCDMessageChaninfo() : IRCDMessage("CHANINFO", 2) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); SetFlag(IRCDMESSAGE_REQUIRE_SERVER); }