Support topic bursts; fix topic display in CHANINFO command
[srvx.git] / src / opserv.c
index 2062c5e786f5a7daab727ca1427dfbabef1261c0..3da6e3e086d04af349ba076413eb850413d7c2d6 100644 (file)
@@ -437,7 +437,7 @@ static MODCMD_FUNC(cmd_chaninfo)
     if (channel->topic_time) {
         fmt = user_find_message(user, "OSMSG_CHANINFO_TOPIC");
         strftime(buffer, sizeof(buffer), fmt, gmtime(&channel->topic_time));
-        reply(buffer, channel->topic_nick, channel->topic);
+        send_message_type(4, user, cmd->parent->bot, buffer, channel->topic_nick, channel->topic);
     } else {
        irc_fetchtopic(cmd->parent->bot, channel->name);
        reply("OSMSG_CHANINFO_TOPIC_UNKNOWN");