mirror of
https://github.com/anope/anope.git
synced 2026-07-08 14:03:13 +02:00
Remove unnecessary functions from ngircd that duplicate the default behavior, fix a few typos in comments
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ class CoreExport Channel : public Base, public Extensible
|
||||
Anope::string topic;
|
||||
/* Who set the topic */
|
||||
Anope::string topic_setter;
|
||||
/* The timestamp associated with the topic. Not necessarually anywhere close to Anope::CurTime.
|
||||
/* The timestamp associated with the topic. Not necessarily anywhere close to Anope::CurTime.
|
||||
* This is the time the topic was *originally set*. When we restore the topic we want to change the TS back
|
||||
* to this, but we can only do this on certain IRCds.
|
||||
*/
|
||||
|
||||
+2
-2
@@ -196,8 +196,8 @@ class CoreExport IRCDProto : public Service
|
||||
*/
|
||||
virtual void SendConnect() = 0;
|
||||
|
||||
/** Called right before we begin our burst, after we have handshaked successfully with the uplink/
|
||||
* At this point none of our servesr, users, or channels exist on the uplink
|
||||
/** Called right before we begin our burst, after we have handshaked successfully with the uplink.
|
||||
* At this point none of our servers, users, or channels exist on the uplink
|
||||
*/
|
||||
virtual void SendBOB() { }
|
||||
virtual void SendEOB() { }
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user