1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 18:43:12 +02:00

Remove unnecessary functions from ngircd that duplicate the default behavior, fix a few typos in comments

This commit is contained in:
Adam
2016-12-10 23:28:50 -05:00
parent 95cd7a6aee
commit 65db59b3ec
3 changed files with 3 additions and 29 deletions
-26
View File
@@ -108,14 +108,6 @@ class ngIRCdProto : public IRCDProto
}
}
void SendKickInternal(const MessageSource &source, const Channel *chan, User *user, const Anope::string &buf) anope_override
{
if (!buf.empty())
UplinkSocket::Message(source) << "KICK " << chan->name << " " << user->nick << " :" << buf;
else
UplinkSocket::Message(source) << "KICK " << chan->name << " " << user->nick;
}
void SendLogin(User *u, NickAlias *na) anope_override
{
UplinkSocket::Message(Me) << "METADATA " << u->GetUID() << " accountname :" << na->nc->display;
@@ -126,30 +118,12 @@ class ngIRCdProto : public IRCDProto
UplinkSocket::Message(Me) << "METADATA " << u->GetUID() << " accountname :";
}
void SendModeInternal(const MessageSource &source, const Channel *dest, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source) << "MODE " << dest->name << " " << buf;
}
void SendPartInternal(User *u, const Channel *chan, const Anope::string &buf) anope_override
{
if (!buf.empty())
UplinkSocket::Message(u) << "PART " << chan->name << " :" << buf;
else
UplinkSocket::Message(u) << "PART " << chan->name;
}
/* SERVER name hop descript */
void SendServer(const Server *server) anope_override
{
UplinkSocket::Message() << "SERVER " << server->GetName() << " " << server->GetHops() << " :" << server->GetDescription();
}
void SendTopic(const MessageSource &source, Channel *c) anope_override
{
UplinkSocket::Message(source) << "TOPIC " << c->name << " :" << c->topic;
}
void SendVhost(User *u, const Anope::string &vIdent, const Anope::string &vhost) anope_override
{
if (!vIdent.empty())