Fix these

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9752 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2008-05-19 00:11:38 +00:00
parent 3699b899c0
commit fd35597348
4 changed files with 10 additions and 10 deletions

View File

@ -64,7 +64,7 @@ class BanRedirect : public ModeWatcher
if(adding && (channel->bans.size() > static_cast<unsigned>(maxbans))) if(adding && (channel->bans.size() > static_cast<unsigned>(maxbans)))
{ {
source->WriteNumeric(478, "%s %s :Channel ban list for %s is full (maximum entries for this channel is %ld)", source->nick, channel->name, channel->name, maxbans); source->WriteNumeric(478, "%s %s :Channel ban list for %s is full (maximum entries for this channel is %ld)", source->nick.c_str(), channel->name, channel->name, maxbans);
return false; return false;
} }
@ -118,7 +118,7 @@ class BanRedirect : public ModeWatcher
{ {
if(irc::string(channel->name) == irc::string(mask[CHAN].c_str())) if(irc::string(channel->name) == irc::string(mask[CHAN].c_str()))
{ {
source->WriteNumeric(690, "%s %s :You cannot set a ban redirection to the channel the ban is on", source->nick, channel->name); source->WriteNumeric(690, "%s %s :You cannot set a ban redirection to the channel the ban is on", source->nick.c_str(), channel->name);
return false; return false;
} }
else else
@ -170,7 +170,7 @@ class BanRedirect : public ModeWatcher
} }
else else
{ {
source->WriteNumeric(403, "%s %s :Invalid channel name in redirection (%s)", source->nick, channel->name, mask[CHAN].c_str()); source->WriteNumeric(403, "%s %s :Invalid channel name in redirection (%s)", source->nick.c_str(), channel->name, mask[CHAN].c_str());
return false; return false;
} }
} }
@ -298,13 +298,13 @@ class ModuleBanRedirect : public Module
if(destchan && ServerInstance->Modules->Find("m_redirect.so") && destchan->IsModeSet('L') && destchan->limit && (destchan->GetUserCounter() >= destchan->limit)) if(destchan && ServerInstance->Modules->Find("m_redirect.so") && destchan->IsModeSet('L') && destchan->limit && (destchan->GetUserCounter() >= destchan->limit))
{ {
user->WriteNumeric(474, "%s %s :Cannot join channel (You are banned)", user->nick, chan->name); user->WriteNumeric(474, "%s %s :Cannot join channel (You are banned)", user->nick.c_str(), chan->name);
return 1; return 1;
} }
else else
{ {
user->WriteNumeric(474, "%s %s :Cannot join channel (You are banned)", user->nick, chan->name); user->WriteNumeric(474, "%s %s :Cannot join channel (You are banned)", user->nick.c_str(), chan->name);
user->WriteNumeric(470, "%s :You are being automatically redirected to %s", user->nick, redir->targetchan.c_str()); user->WriteNumeric(470, "%s :You are being automatically redirected to %s", user->nick.c_str(), redir->targetchan.c_str());
nofollow = true; nofollow = true;
Channel::JoinUser(ServerInstance, user, redir->targetchan.c_str(), false, "", false, ServerInstance->Time()); Channel::JoinUser(ServerInstance, user, redir->targetchan.c_str(), false, "", false, ServerInstance->Time());
nofollow = false; nofollow = false;

View File

@ -137,12 +137,12 @@ class ModuleBlockAmsg : public Module
{ {
// Block it... // Block it...
if(action == IBLOCK_KILLOPERS || action == IBLOCK_NOTICEOPERS) if(action == IBLOCK_KILLOPERS || action == IBLOCK_NOTICEOPERS)
ServerInstance->SNO->WriteToSnoMask('A', "%s had an /amsg or /ame denied", user->nick); ServerInstance->SNO->WriteToSnoMask('A', "%s had an /amsg or /ame denied", user->nick.c_str());
if(action == IBLOCK_KILL || action == IBLOCK_KILLOPERS) if(action == IBLOCK_KILL || action == IBLOCK_KILLOPERS)
ServerInstance->Users->QuitUser(user, "Global message (/amsg or /ame) detected"); ServerInstance->Users->QuitUser(user, "Global message (/amsg or /ame) detected");
else if(action == IBLOCK_NOTICE || action == IBLOCK_NOTICEOPERS) else if(action == IBLOCK_NOTICE || action == IBLOCK_NOTICEOPERS)
user->WriteServ( "NOTICE %s :Global message (/amsg or /ame) detected", user->nick); user->WriteServ( "NOTICE %s :Global message (/amsg or /ame) detected", user->nick.c_str());
return 1; return 1;
} }

View File

@ -86,7 +86,7 @@ public:
} }
if ( ((caps*100)/(int)text.length()) >= percent ) if ( ((caps*100)/(int)text.length()) >= percent )
{ {
user->WriteServ( "404 %s %s :Your line cannot be more than %d%% capital letters if it is %d or more letters long", user->nick, c->name, percent, minlen); user->WriteServ( "404 %s %s :Your line cannot be more than %d%% capital letters if it is %d or more letters long", user->nick.c_str(), c->name, percent, minlen);
return 1; return 1;
} }
} }

View File

@ -63,7 +63,7 @@ class ModuleBlockColour : public Module
case 21: case 21:
case 22: case 22:
case 31: case 31:
user->WriteNumeric(404, "%s %s :Can't send colours to channel (+c set)",user->nick, c->name); user->WriteNumeric(404, "%s %s :Can't send colours to channel (+c set)",user->nick.c_str(), c->name);
return 1; return 1;
break; break;
} }