]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
These two numerics are supposed to use SentText() as they can go to remote users...
authorAdam <Adam@anope.org>
Tue, 12 Nov 2013 15:42:17 +0000 (10:42 -0500)
committerAdam <Adam@anope.org>
Tue, 12 Nov 2013 15:42:17 +0000 (10:42 -0500)
src/modules/m_callerid.cpp
src/modules/m_globalload.cpp

index 7d8247530592c8f8cc32351479efe8e9a83e33d7..33c87494658df60697cb37708005b215ba476134 100644 (file)
@@ -402,8 +402,8 @@ public:
                        if (now > (dat->lastnotify + (time_t)notify_cooldown))
                        {
                                user->WriteNumeric(RPL_TARGNOTIFY, "%s :has been informed that you messaged them.", dest->nick.c_str());
-                               dest->WriteNumeric(RPL_UMODEGMSG, "%s %s@%s :is messaging you, and you have umode +g. Use /ACCEPT +%s to allow.",
-                                               user->nick.c_str(), user->ident.c_str(), user->dhost.c_str(), user->nick.c_str());
+                               dest->SendText(":%s %03d %s %s %s@%s :is messaging you, and you have umode +g. Use /ACCEPT +%s to allow.",
+                                               ServerInstance->Config->ServerName.c_str(), RPL_UMODEGMSG, dest->nick.c_str(), user->nick.c_str(), user->ident.c_str(), user->dhost.c_str(), user->nick.c_str());
                                dat->lastnotify = now;
                        }
                        return MOD_RES_DENY;
index cae8b09f9e3c3d2a2cfb926cd180b9960e725e77..eda654423af55c944683388452dae0a609d946c3 100644 (file)
@@ -102,7 +102,7 @@ class CommandGunloadmodule : public Command
                                }
                        }
                        else
-                               user->SendText(":%s ERR_CANTUNLOADMODULE %s %s :No such module", ServerInstance->Config->ServerName.c_str(), user->nick.c_str(), parameters[0].c_str());
+                               user->SendText(":%s %03d %s %s :No such module", ServerInstance->Config->ServerName.c_str(), ERR_CANTUNLOADMODULE, user->nick.c_str(), parameters[0].c_str());
                }
                else
                        ServerInstance->SNO->WriteToSnoMask('a', "MODULE '%s' GLOBAL UNLOAD BY '%s' (not unloaded here)",parameters[0].c_str(), user->nick.c_str());