diff options
-rw-r--r-- | conf/messages.conf | 4 | ||||
-rw-r--r-- | src/map/clif.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/conf/messages.conf b/conf/messages.conf index 2b5f8eb63..f4098ae30 100644 --- a/conf/messages.conf +++ b/conf/messages.conf @@ -1235,7 +1235,8 @@ // @mobinfo ... 1291: ATK:%d~%d MATK:%d~%d Range:%d~%d~%d Size:%s Race: %s Element: %s (Lv:%d) -//1292-1294 FREE +//1292-1293 FREE +//1294 used by hercules chat feature // @version 1295: %s revision '%s' (src) / '%s' (scripts) @@ -1416,6 +1417,7 @@ 1402: You're not in that channel, type '@join <#channel_name>' 1435: You're now in the '#%s' channel for '%s' 1436: You're already in the '%s' channel +1294: You're not allowed to talk on this channel // @channel 1404: %s failed diff --git a/src/map/clif.c b/src/map/clif.c index bbd2f8c7f..d499cf67f 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -10130,6 +10130,9 @@ void clif_parse_WisMessage(int fd, struct map_session_data* sd) clif->message(fd, msg_fd(fd,1402)); } return; + } else if (strcmpi(&chname[1], channel->config->ally_name) == 0) { + clif->message(fd, msg_fd(fd,1294)); // You're not allowed to talk on this channel + return; } } |