mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 18:50:13 +01:00
Fixed another typo, added a check for !NPC do_gen_comm, and changed do_return to only run autowiz if level changes. --Rumble
This commit is contained in:
parent
63c6808612
commit
a7ffa85498
3 changed files with 6 additions and 3 deletions
|
|
@ -456,7 +456,7 @@ ACMD(do_gen_comm)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* Make sure the char is on the channel. */
|
/* Make sure the char is on the channel. */
|
||||||
if (PRF_FLAGGED(ch, channels[subcmd])) {
|
if (!IS_NPC(ch) && PRF_FLAGGED(ch, channels[subcmd])) {
|
||||||
send_to_char(ch, "%s", com_msgs[subcmd][2]);
|
send_to_char(ch, "%s", com_msgs[subcmd][2]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1225,8 +1225,11 @@ void do_cheat(struct char_data *ch)
|
||||||
ACMD(do_return)
|
ACMD(do_return)
|
||||||
{
|
{
|
||||||
if (!IS_NPC(ch) && !ch->desc->original) {
|
if (!IS_NPC(ch) && !ch->desc->original) {
|
||||||
|
int level, newlevel;
|
||||||
|
level = GET_LEVEL(ch);
|
||||||
do_cheat(ch);
|
do_cheat(ch);
|
||||||
if (!PLR_FLAGGED(ch, PLR_NOWIZLIST))
|
newlevel = GET_LEVEL(ch);
|
||||||
|
if (!PLR_FLAGGED(ch, PLR_NOWIZLIST)&& level != newlevel)
|
||||||
run_autowiz();
|
run_autowiz();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1214,7 +1214,7 @@ ACMD(do_detach)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arg3 == NULL || *arg3)
|
if (arg3 == NULL || !*arg3)
|
||||||
send_to_char(ch, "You must specify a trigger to remove.\r\n");
|
send_to_char(ch, "You must specify a trigger to remove.\r\n");
|
||||||
else
|
else
|
||||||
trigger = arg3;
|
trigger = arg3;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue