summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-12 09:30:11 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-12 09:30:11 +0000
commitc81bcf3333bcafd9842c8d6cfb8fa3c6f7fb91a6 (patch)
treee4695b03d8541c19f0ea919c88d4976cc870be19 /src/modules
parent6ffca6b9565b04aa9a4ffb83732d2c077dfc681d (diff)
Fix missing user->nick in m_callerid
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8908 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_callerid.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp
index 7fea35d34..3fbbe0716 100644
--- a/src/modules/m_callerid.cpp
+++ b/src/modules/m_callerid.cpp
@@ -313,10 +313,10 @@ public:
new_maxaccepts = 16;
break;
case CONF_NOT_A_NUMBER:
- if (user) user->WriteServ("NOTICE %s :Invalid maxaccepts value '%s', not a number", Conf.ReadValue("callerid", "maxaccepts", "", 0).c_str());
+ if (user) user->WriteServ("NOTICE %s :Invalid maxaccepts value '%s', not a number", user->nick, Conf.ReadValue("callerid", "maxaccepts", "", 0).c_str());
throw ModuleException("Invalid maxaccepts value, not a number");
case CONF_INT_NEGATIVE:
- if (user) user->WriteServ("NOTICE %s :Invalid maxaccepts value '%s', negative", Conf.ReadValue("callerid", "maxaccepts", "", 0).c_str());
+ if (user) user->WriteServ("NOTICE %s :Invalid maxaccepts value '%s', negative", user->nick, Conf.ReadValue("callerid", "maxaccepts", "", 0).c_str());
throw ModuleException("Invalid maxaccepts value, negative");
default:
/* Yikes */
@@ -334,10 +334,10 @@ public:
new_cooldown = 16;
break;
case CONF_NOT_A_NUMBER:
- if (user) user->WriteServ("NOTICE %s :Invalid cooldown value '%s', not a number", Conf.ReadValue("callerid", "maxaccepts", "", 0).c_str());
+ if (user) user->WriteServ("NOTICE %s :Invalid cooldown value '%s', not a number", user->nick, Conf.ReadValue("callerid", "maxaccepts", "", 0).c_str());
throw ModuleException("Invalid cooldown value, not a number");
case CONF_INT_NEGATIVE:
- if (user) user->WriteServ("NOTICE %s :Invalid cooldown value '%s', negative", Conf.ReadValue("callerid", "maxaccepts", "", 0).c_str());
+ if (user) user->WriteServ("NOTICE %s :Invalid cooldown value '%s', negative", user->nick, Conf.ReadValue("callerid", "maxaccepts", "", 0).c_str());
throw ModuleException("Invalid cooldown value, negative");
default:
/* Yikes */