diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/atcommand.c | 1 | ||||
-rw-r--r-- | src/map/clif.c | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 2fdc1a9d3..b7e50e378 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -8904,6 +8904,7 @@ ACMD_FUNC(channel) { clif->chsys_create(channel,sub1 + 1,sub2,0); channel->owner = sd->status.char_id; + channel->type = hChSys_PRIVATE; if( !( channel->opt & hChSys_OPT_ANNOUNCE_JOIN ) ) { sprintf(atcmd_output, msg_txt(1403),sub1); // You're now in the '%s' channel 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++ ) { |