summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-08-05 15:32:35 +0200
committerHaru <haru@dotalux.com>2013-08-12 17:14:51 +0200
commitd20596083a12a8ab797614121be51d2a914abe58 (patch)
tree85381bfec7e42eda0af7219f0b6b041c107921d2 /src/map/clif.c
parent3fb307be68de6026df138b2d48f2f6b94dbec64f (diff)
downloadhercules-d20596083a12a8ab797614121be51d2a914abe58.tar.gz
hercules-d20596083a12a8ab797614121be51d2a914abe58.tar.bz2
hercules-d20596083a12a8ab797614121be51d2a914abe58.tar.xz
hercules-d20596083a12a8ab797614121be51d2a914abe58.zip
Added support for target-less commands in the IRC bridge
Needed for future updates (such as receiving "QUIT" commands Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 7171a48be..d42dc4748 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -3711,7 +3711,7 @@ void clif_useitemack(struct map_session_data *sd,int index,int amount,bool ok)
}
}
-void clif_hercules_chsys_send(struct hChSysCh *channel, struct map_session_data *sd, char *msg) {
+void clif_hercules_chsys_send(struct hChSysCh *channel, struct map_session_data *sd, const char *msg) {
if( channel->msg_delay != 0 && DIFF_TICK(sd->hchsysch_tick + ( channel->msg_delay * 1000 ), iTimer->gettick()) > 0 && !pc->has_permission(sd, PC_PERM_HCHSYS_ADMIN) ) {
clif->colormes(sd->fd,COLOR_RED,msg_txt(1455));
return;
@@ -5715,7 +5715,7 @@ void clif_broadcast(struct block_list* bl, const char* mes, int len, int type, e
* Used by npc_globalmessage
*------------------------------------------*/
void clif_GlobalMessage(struct block_list* bl, const char* message) {
- char buf[100];
+ char buf[256];
int len;
nullpo_retv(bl);