From 36f357c3547dee43f5f694f32878edd7a641c755 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 30 Oct 2012 17:09:30 -0400 Subject: Fixed build errors and warnings with -std=c++11 --- modules/protocol/bahamut.cpp | 2 +- modules/protocol/ngircd.cpp | 8 -------- modules/protocol/unreal.cpp | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) (limited to 'modules/protocol') diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index 181b4dc2e..5a5e650cc 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -238,7 +238,7 @@ class BahamutIRCdProto : public IRCDProto /* Note: if the stamp is null 0, the below usage is correct of Bahamut */ - void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf) anope_override + void SendSVSKillInternal(const BotInfo *source, User *user, const Anope::string &buf) anope_override { if (source) UplinkSocket::Message(source) << "SVSKILL " << user->nick << " :" << buf; diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp index 442d2c8e5..2d69c5f30 100644 --- a/modules/protocol/ngircd.cpp +++ b/modules/protocol/ngircd.cpp @@ -138,14 +138,6 @@ class ngIRCdProto : public IRCDProto UplinkSocket::Message() << "SERVER " << server->GetName() << " " << server->GetHops() << " :" << server->GetDescription(); } - void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf) anope_override - { - if (source) - UplinkSocket::Message(source) << "KILL " << user->nick << " :" << buf; - else - UplinkSocket::Message(Me) << "KILL " << user->nick << " :" << buf; - } - void SendTopic(BotInfo *bi, Channel *c) anope_override { UplinkSocket::Message(bi) << "TOPIC " << c->name << " :" << c->topic; diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp index bafca8016..b54df1863 100644 --- a/modules/protocol/unreal.cpp +++ b/modules/protocol/unreal.cpp @@ -126,7 +126,7 @@ class UnrealIRCdProto : public IRCDProto UplinkSocket::Message() << "BD + G " << x->GetUser() << " " << x->GetHost() << " " << x->By << " " << Anope::CurTime + timeleft << " " << x->Created << " :" << x->GetReason(); } - void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf) anope_override + void SendSVSKillInternal(const BotInfo *source, User *user, const Anope::string &buf) anope_override { UplinkSocket::Message(source) << "h " << user->nick << " :" << buf; } -- cgit