diff options
author | shennetsind <ind@henn.et> | 2013-04-01 17:43:01 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-01 17:43:01 -0300 |
commit | 1e87c09c8463009a4c97d30277d2345b3c83b0f3 (patch) | |
tree | 03d028f596185f2cb3bde048ab26b5431d4b46ec /src/map/clif.c | |
parent | e0ae3fea78fdeb275bd0a92979067511f8eef69f (diff) | |
download | hercules-1e87c09c8463009a4c97d30277d2345b3c83b0f3.tar.gz hercules-1e87c09c8463009a4c97d30277d2345b3c83b0f3.tar.bz2 hercules-1e87c09c8463009a4c97d30277d2345b3c83b0f3.tar.xz hercules-1e87c09c8463009a4c97d30277d2345b3c83b0f3.zip |
Fixed a bug in the channel system
All credit goes to malufett, thank you~!
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 51320dd56..fefb5afc2 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -3567,7 +3567,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) { char message[150]; snprintf(message, 150, "[ #%s ] %s : %s",channel->name,sd->status.name, msg); - clif->chsys_msg(channel,sd,message); + clif->chsys_msg(channel,sd,message); } /// Inform client whether chatroom creation was successful or not (ZC_ACK_CREATE_CHATROOM). @@ -10363,10 +10363,7 @@ void clif_hercules_chsys_delete(struct hChSysCh *channel) { if( db_size(channel->users) && !hChSys.closing ) { DBIterator *iter; struct map_session_data *sd; - char message[60]; unsigned char i; - sprintf(message, "#%s channel is being shut down",channel->name); - clif->chsys_msg(channel,sd,message); iter = db_iterator(channel->users); for( sd = dbi_first(iter); dbi_exists(iter); sd = dbi_next(iter) ) { for( i = 0; i < sd->channel_count; i++ ) { |