summaryrefslogtreecommitdiff
path: root/src/modules/m_services.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-22 12:03:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-22 12:03:43 +0000
commit68730d4c9701b34c962302e6410908865fb2ba28 (patch)
treedfa6b0b1d79bfd894ab75d0415e054b54ff2d850 /src/modules/m_services.cpp
parent9ee525bec55521e9d911df40c2d8ca8b0212ee22 (diff)
Wheeee for HUGE commits. Convert all numerics to WriteNumeric so that OnNumeric can capture them.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9175 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_services.cpp')
-rw-r--r--src/modules/m_services.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp
index 1f64615b4..d3781cef3 100644
--- a/src/modules/m_services.cpp
+++ b/src/modules/m_services.cpp
@@ -35,7 +35,7 @@ class Channel_r : public ModeHandler
}
else
{
- source->WriteServ("500 %s :Only a server may modify the +r channel mode", source->nick);
+ source->WriteNumeric(500, "%s :Only a server may modify the +r channel mode", source->nick);
return MODEACTION_DENY;
}
}
@@ -62,7 +62,7 @@ class User_r : public ModeHandler
}
else
{
- source->WriteServ("500 %s :Only a server may modify the +r user mode", source->nick);
+ source->WriteNumeric(500, "%s :Only a server may modify the +r user mode", source->nick);
return MODEACTION_DENY;
}
}
@@ -231,7 +231,7 @@ class ModuleServices : public Module
return 0;
}
// user messaging a +M channel and is not registered
- user->WriteServ("477 %s %s :You need a registered nickname to speak on this channel", user->nick, c->name);
+ user->WriteNumeric(477, "%s %s :You need a registered nickname to speak on this channel", user->nick, c->name);
return 1;
}
}
@@ -246,7 +246,7 @@ class ModuleServices : public Module
return 0;
}
// user messaging a +R user and is not registered
- user->WriteServ("477 %s %s :You need a registered nickname to message this user", user->nick, u->nick);
+ user->WriteNumeric(477, "%s %s :You need a registered nickname to message this user", user->nick, u->nick);
return 1;
}
}
@@ -272,7 +272,7 @@ class ModuleServices : public Module
return 0;
}
// joining a +R channel and not identified
- user->WriteServ("477 %s %s :You need a registered nickname to join this channel", user->nick, chan->name);
+ user->WriteNumeric(477, "%s %s :You need a registered nickname to join this channel", user->nick, chan->name);
return 1;
}
}