[Apr 14 2007] - Rumble
IP's only visible to LVL_GOD and above now for the paranoid people out there. [Apr 13 2007] - Rumble Finally made gemote actually work like emote and not just use socials. (thanks Fizban) Reworded and standardized the trigedit attachment menu. Numerous minor fixes taken from the latest CWG release. (thanks Zizazat) Update to is_number to check for negative numbers. (thanks Kyle) Update to isname to disallow abbreviated numbers. (thanks Sryth) [Apr 08 2007] - Rumble Removed all usage of CAP(str causing a memory leak (thanks Kyle).
This commit is contained in:
15
src/oasis.c
15
src/oasis.c
@@ -264,8 +264,15 @@ int can_edit_zone(struct char_data *ch, zone_rnum rnum)
|
||||
|
||||
void send_cannot_edit(struct char_data *ch, zone_vnum zone)
|
||||
{
|
||||
send_to_char(ch, "You do not have permission to edit zone %d.", zone);
|
||||
if (GET_OLC_ZONE(ch) != NOWHERE)
|
||||
send_to_char(ch, " Try zone %d.", GET_OLC_ZONE(ch));
|
||||
send_to_char(ch, "\r\n");
|
||||
char buf[MAX_STRING_LENGTH];
|
||||
|
||||
if (GET_OLC_ZONE(ch) != NOWHERE) {
|
||||
send_to_char(ch, "You do not have permission to edit zone %d. Try zone %d.\r\n", zone, GET_OLC_ZONE(ch));
|
||||
sprintf(buf, "OLC: %s tried to edit zone %d (allowed zone %d).", GET_NAME(ch), zone, GET_OLC_ZONE(ch));
|
||||
} else {
|
||||
send_to_char(ch, "You do not have permission to edit zone %d.\r\n", GET_OLC_ZONE(ch));
|
||||
sprintf(buf, "OLC: %s tried to edit zone %d.", GET_NAME(ch), zone);
|
||||
}
|
||||
mudlog(BRF, LVL_IMPL, TRUE, buf);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user