diff options
| author | Adam <Adam@anope.org> | 2012-10-30 15:50:39 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-10-30 15:50:39 -0400 |
| commit | b07928eea95dc2c12a2be8adfe804e2019881ee5 (patch) | |
| tree | 6ae3ca2794f13d868c5931fc71ebbefa0313265c /modules/protocol/inspircd-ts6.h | |
| parent | 1ef748038083e845af040ddc0b52ac27d2fe6753 (diff) | |
Clean up ngircd proto mod slightly, and send sqlines before introducing clients
Diffstat (limited to 'modules/protocol/inspircd-ts6.h')
| -rw-r--r-- | modules/protocol/inspircd-ts6.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/protocol/inspircd-ts6.h b/modules/protocol/inspircd-ts6.h index e60600b4b..e03f5fa1f 100644 --- a/modules/protocol/inspircd-ts6.h +++ b/modules/protocol/inspircd-ts6.h @@ -49,14 +49,12 @@ class InspIRCdTS6Proto : public IRCDProto void SendAddLine(const Anope::string &type, const Anope::string &mask, time_t duration, const Anope::string &addedby, const Anope::string &reason) { - const BotInfo *bi = findbot(Config->OperServ); - UplinkSocket::Message(bi) << "ADDLINE " << type << " " << mask << " " << addedby << " " << Anope::CurTime << " " << duration << " :" << reason; + UplinkSocket::Message(Me) << "ADDLINE " << type << " " << mask << " " << addedby << " " << Anope::CurTime << " " << duration << " :" << reason; } void SendDelLine(const Anope::string &type, const Anope::string &mask) { - const BotInfo *bi = findbot(Config->OperServ); - UplinkSocket::Message(bi) << "DELLINE " << type << " " << mask; + UplinkSocket::Message(Me) << "DELLINE " << type << " " << mask; } protected: |
