From: Pekka Riikonen Date: Thu, 28 Mar 2002 11:18:03 +0000 (+0000) Subject: updates X-Git-Tag: silc.server.0.8.2~1 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=259aaf3c1adcb315da9d8ace4956944e09b53def;p=silc.git updates --- diff --git a/CHANGES b/CHANGES index 4101f618..00c6b56d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,9 @@ +Thu Mar 28 12:17:21 CET 2002 Pekka Riikonen + + * Fixed the TOPIC_SET notify to not cras. It changed the topic + too early, before getting the channel entry. Affected file + is silcd/packet_receive.c. + Thu Mar 28 09:58:16 CET 2002 Johnny Mnemonic * Added functions silc_server_config_[ref/unref], these are used diff --git a/apps/silcd/packet_receive.c b/apps/silcd/packet_receive.c index 972e60be..3787196a 100644 --- a/apps/silcd/packet_receive.c +++ b/apps/silcd/packet_receive.c @@ -378,9 +378,6 @@ void silc_server_notify(SilcServer server, goto out; } - if (channel->topic && !strcmp(channel->topic, tmp)) - goto out; - if (!channel_id) { channel_id = silc_id_str2id(packet->dst_id, packet->dst_id_len, packet->dst_id_type); @@ -400,6 +397,9 @@ void silc_server_notify(SilcServer server, } } + if (channel->topic && !strcmp(channel->topic, tmp)) + goto out; + /* Get user's channel entry and check that topic set is allowed. */ if (!silc_server_client_on_channel(client, channel, &chl)) goto out;