]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_services.cpp
Match on nick change option for RLine, document m_rline & this option.
[user/henk/code/inspircd.git] / src / modules / m_services.cpp
index 1f64615b4a2bcbe3169884ae9c656b9491c61c9b..54690c39b812ea4792de2d446a20b551a1ca9836 100644 (file)
@@ -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;
                                }
                        }
@@ -297,7 +297,7 @@ class ModuleServices : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1,1,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
+               return Version(1,2,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
        }
 };