]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_xline/core_xline.cpp
Convert WriteNumeric() calls to pass the parameters of the numeric as method parameters
[user/henk/code/inspircd.git] / src / coremods / core_xline / core_xline.cpp
index 7fa7da0197369fb412955489fb1e261473e11443..93ac1db311868040137f1a63269eb4daceb770cc 100644 (file)
@@ -80,7 +80,7 @@ class CoreModXLine : public Module
                }
 
                // Send a numeric because if we deny then the core doesn't reply anything
-               user->WriteNumeric(ERR_ERRONEUSNICKNAME, "%s :Invalid nickname: %s", newnick.c_str(), xline->reason.c_str());
+               user->WriteNumeric(ERR_ERRONEUSNICKNAME, newnick, InspIRCd::Format("Invalid nickname: %s", xline->reason.c_str()));
                return MOD_RES_DENY;
        }