1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 23:23:14 +02:00

- Fixed a couple of add_Command/del_Command lines in m_chgname and m_helpop trying to

add the same token twice. Didn't cause any trouble, normally, though...
This commit is contained in:
Bram Matthys
2006-10-28 14:18:07 +00:00
parent 66de87ec29
commit 1fe247500e
3 changed files with 6 additions and 4 deletions
+2
View File
@@ -1390,3 +1390,5 @@
for unknown not being sent as token.
- Fixed deny link {} blocks being ignored by autoconnect. Reported by a couple people, also
see #0003084.
- Fixed a couple of add_Command/del_Command lines in m_chgname and m_helpop trying to
add the same token twice. Didn't cause any trouble, normally, though...
+2 -2
View File
@@ -72,7 +72,7 @@ DLLFUNC int MOD_INIT(m_chgname)(ModuleInfo *modinfo)
* We call our add_Command crap here
*/
add_Command(MSG_CHGNAME, TOK_CHGNAME, m_chgname, 2);
add_Command(MSG_SVSNAME, TOK_CHGNAME, m_chgname, 2);
add_Command(MSG_SVSNAME, NULL, m_chgname, 2);
MARK_AS_OFFICIAL_MODULE(modinfo);
return MOD_SUCCESS;
}
@@ -93,7 +93,7 @@ DLLFUNC int MOD_UNLOAD(m_chgname)(int module_unload)
sendto_realops("Failed to delete command chgname when unloading %s",
MOD_HEADER(m_chgname).name);
}
if (del_Command(MSG_SVSNAME, TOK_CHGNAME, m_chgname) < 0)
if (del_Command(MSG_SVSNAME, NULL, m_chgname) < 0)
{
sendto_realops("Failed to delete command svsname when unloading %s",
MOD_HEADER(m_chgname).name);
+2 -2
View File
@@ -62,7 +62,7 @@ ModuleHeader MOD_HEADER(m_help)
DLLFUNC int MOD_INIT(m_help)(ModuleInfo *modinfo)
{
add_Command(MSG_HELP, TOK_HELP, m_help, 1);
add_Command(MSG_HELPOP, TOK_HELP, m_help, 1);
add_Command(MSG_HELPOP, NULL, m_help, 1);
MARK_AS_OFFICIAL_MODULE(modinfo);
return MOD_SUCCESS;
}
@@ -79,7 +79,7 @@ DLLFUNC int MOD_UNLOAD(m_help)(int module_unload)
sendto_realops("Failed to delete commands when unloading %s",
MOD_HEADER(m_help).name);
}
if (del_Command(MSG_HELPOP, TOK_HELP, m_help) < 0)
if (del_Command(MSG_HELPOP, NULL, m_help) < 0)
{
sendto_realops("Failed to delete commands when unloading %s",
MOD_HEADER(m_help).name);