From 6f8972c518efe0f7485126289f8fcbe15b979567 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 May 2008 23:25:41 +0000 Subject: Fix two git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9749 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_antibear.cpp | 6 +++--- src/modules/m_auditorium.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modules/m_antibear.cpp b/src/modules/m_antibear.cpp index 874ff43da..633b1e332 100644 --- a/src/modules/m_antibear.cpp +++ b/src/modules/m_antibear.cpp @@ -65,9 +65,9 @@ class ModuleAntiBear : public Module virtual int OnUserRegister(User* user) { - user->WriteNumeric(439, "%s :This server has anti-spambot mechanisms enabled.", user->nick); - user->WriteNumeric(931, "%s :Malicious bots, spammers, and other automated systems of dubious origin are NOT welcome here.", user->nick); - user->WriteServ("PRIVMSG %s :\1TIME\1", user->nick); + user->WriteNumeric(439, "%s :This server has anti-spambot mechanisms enabled.", user->nick.c_str()); + user->WriteNumeric(931, "%s :Malicious bots, spammers, and other automated systems of dubious origin are NOT welcome here.", user->nick.c_str()); + user->WriteServ("PRIVMSG %s :\1TIME\1", user->nick.c_str()); user->Extend("antibear_timewait"); return 0; } diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index 75f953f43..0a1555b29 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -26,7 +26,7 @@ class AuditoriumMode : public ModeHandler { if (IS_LOCAL(source) && (channel->GetStatus(source) < STATUS_OP)) { - source->WriteNumeric(482, "%s %s :Only channel operators may %sset channel mode +u", source->nick, channel->name, adding ? "" : "un"); + source->WriteNumeric(482, "%s %s :Only channel operators may %sset channel mode +u", source->nick.c_str(), channel->name, adding ? "" : "un"); return MODEACTION_DENY; } else @@ -149,11 +149,11 @@ class ModuleAuditorium : public Module { silent = true; /* Send silenced event only to the user being kicked and the user doing the kick */ - source->WriteFrom(source, "KICK %s %s %s", chan->name, user->nick, reason.c_str()); + source->WriteFrom(source, "KICK %s %s %s", chan->name, user->nick.c_str(), reason.c_str()); if (ShowOps) - chan->WriteAllExcept(source, false, chan->GetStatus(source) >= STATUS_OP ? 0 : '@', except_list, "KICK %s %s %s", chan->name, user->nick, reason.c_str()); + chan->WriteAllExcept(source, false, chan->GetStatus(source) >= STATUS_OP ? 0 : '@', except_list, "KICK %s %s %s", chan->name, user->nick.c_str(), reason.c_str()); else - user->WriteFrom(source, "KICK %s %s %s", chan->name, user->nick, reason.c_str()); + user->WriteFrom(source, "KICK %s %s %s", chan->name, user->nick.c_str(), reason.c_str()); } } -- cgit v1.2.3