- user->WriteNumeric(938, "%s %s :No such spamfilter word is set",user->nick, chan->name);
+ user->WriteNumeric(938, "%s %s :No such spamfilter word is set",user->nick.c_str(), chan->name.c_str());
}
};
class ModuleChanFilter : public Module
{
-
+
ChanFilter* cf;
-
+
public:
-
+
ModuleChanFilter(InspIRCd* Me)
: Module(Me)
{
@@ -86,7+86,7 @@ class ModuleChanFilter : public Module
virtual int ProcessMessages(User* user,Channel* chan,std::string &text)
{
- if (!IS_LOCAL(user) || CHANOPS_EXEMPT(ServerInstance, 'g') && chan->GetStatus(user) == STATUS_OP)
+ if (!IS_LOCAL(user) || (CHANOPS_EXEMPT(ServerInstance, 'g') && chan->GetStatus(user) == STATUS_OP))
return 0;
// Create a copy of the string in irc::string
@@ -101,7+101,7 @@ class ModuleChanFilter : public Module
{
if (line.find(i->mask.c_str()) != std::string::npos)
{
- user->WriteNumeric(936, "%s %s %s :Your message contained a censored word, and was blocked",user->nick, chan->name, i->mask.c_str());
+ user->WriteNumeric(936, "%s %s %s :Your message contained a censored word, and was blocked",user->nick.c_str(), chan->name.c_str(), i->mask.c_str());
return 1;
}
}
@@ -116,19+116,19 @@ class ModuleChanFilter : public Module