diff options
Diffstat (limited to 'src/botserv.c')
-rw-r--r-- | src/botserv.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/botserv.c b/src/botserv.c index f1a89578d..735e608c4 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -400,13 +400,21 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf) /* Fantaisist commands */ - if (buf && (ci->botflags & BS_FANTASY) && *buf == '!') { + if (buf && (ci->botflags & BS_FANTASY) && *buf == *BSFantasyCharacter) { cmd = strtok(buf, " "); - if (cmd && (cmd[0] == '!')) { + if (cmd && (cmd[0] == *BSFantasyCharacter)) { char *params = strtok(NULL, ""); char *event_name = EVENT_BOT_FANTASY_NO_ACCESS; + /* Warning: Hack Ahead + * To allow older modules to still work safely with the fantasy + * events, we replace the first char with '!' so that the cmd will + * be !trigger, and not *trigger or whatever, which will confuse + * them. Should be replaced after 1.8 -GD + */ + cmd[0] = '!'; + if (check_access(u, ci, CA_FANTASIA)) event_name = EVENT_BOT_FANTASY; |