Skip to content

Commit bc79a45

Browse files
authored
Fix typo, reported by @argvx
1 parent 6f4c25c commit bc79a45

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

files/mute.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module
2525
ModuleHeader MOD_HEADER
2626
= {
2727
"third/mute",
28-
"1.3",
28+
"1.4",
2929
"Globally mute a user",
3030
"Valware",
3131
"unrealircd-6",
@@ -223,7 +223,7 @@ CMD_FUNC(CMD_MUTE)
223223

224224
if (parc < 2)
225225
{
226-
sendnumeric(client, ERR_NEEDMOREPARAMS, "MUTE");
226+
sendnumeric(client, ERR_NEEDMOREPARAMS, MSG_MUTE);
227227
return;
228228
}
229229

@@ -263,12 +263,12 @@ CMD_FUNC(CMD_MUTE)
263263
}
264264
if (IsOper(target) && client != target) // let them mute themselves why not
265265
{
266-
sendnumeric(client, ERR_CANNOTDOCOMMAND, "MUTE", "Permission denied!");
266+
sendnumeric(client, ERR_CANNOTDOCOMMAND, MSG_MUTE, "Permission denied!");
267267
return;
268268
}
269269
if (IsMuted(target))
270270
{
271-
sendnumeric(client, ERR_CANNOTDOCOMMAND, "MUTE", "That user is already muted");
271+
sendnumeric(client, ERR_CANNOTDOCOMMAND, MSG_MUTE, "That user is already muted");
272272
return;
273273
}
274274
Mute(target);
@@ -285,7 +285,7 @@ CMD_FUNC(CMD_UNMUTE)
285285

286286
if (parc < 2)
287287
{
288-
sendnumeric(client, ERR_NEEDMOREPARAMS, "UMUTE");
288+
sendnumeric(client, ERR_NEEDMOREPARAMS, MSG_UNMUTE);
289289
return;
290290
}
291291

@@ -301,12 +301,12 @@ CMD_FUNC(CMD_UNMUTE)
301301
}
302302
if (IsOper(target) && target != client)
303303
{
304-
sendnumeric(client, ERR_CANNOTDOCOMMAND, "UNMUTE", "Permission denied!");
304+
sendnumeric(client, ERR_CANNOTDOCOMMAND, MSG_UNMUTE, "Permission denied!");
305305
return;
306306
}
307307
if (!IsMuted(target))
308308
{
309-
sendnumeric(client, ERR_CANNOTDOCOMMAND, "UNMUTE", "That user was not muted");
309+
sendnumeric(client, ERR_CANNOTDOCOMMAND, MSG_UNMUTE, "That user was not muted");
310310
return;
311311
}
312312
Unmute(target);

0 commit comments

Comments
 (0)