]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_topic.c
Servlink control data is read again, this makes /stats Z work.
[irc/rqf/shadowircd.git] / modules / m_topic.c
index 0541cad2b4e02774717d3ee45be37e14fe408f1b..fb558fb12d59c908b4c3fabe7f230a811e990735 100644 (file)
@@ -25,7 +25,6 @@
  */
 
 #include "stdinc.h"
-#include "tools.h"
 #include "channel.h"
 #include "client.h"
 #include "hash.h"
@@ -102,9 +101,9 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char *
                if((chptr->mode.mode & MODE_TOPICLIMIT) == 0 || is_chanop(msptr))
                {
                        char topic_info[USERHOST_REPLYLEN];
-                       ircsprintf(topic_info, "%s!%s@%s",
+                       rb_sprintf(topic_info, "%s!%s@%s",
                                        source_p->name, source_p->username, source_p->host);
-                       set_channel_topic(chptr, parv[2], topic_info, CurrentTime);
+                       set_channel_topic(chptr, parv[2], topic_info, rb_current_time());
 
                        sendto_server(client_p, chptr, CAP_TS6, NOCAPS,
                                        ":%s TOPIC %s :%s",