From 259aaf3c1adcb315da9d8ace4956944e09b53def Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Thu, 28 Mar 2002 11:18:03 +0000 Subject: [PATCH] updates --- CHANGES | 6 ++++++ apps/silcd/packet_receive.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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; -- 2.24.0