]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/hash.c
Added back missing comment to example config
[irc/evilnet/x3.git] / src / hash.c
index 23ac238c35298c1a4ae92ab8b8d37afb28ac0fa2..6e1005ff150f80b1851e0c88ffd3d7e98571ce9e 100644 (file)
@@ -692,7 +692,7 @@ reg_topic_func(topic_func_t handler)
 }
 
 void
-SetChannelTopic(struct chanNode *channel, struct userNode *user, const char *topic, int announce)
+SetChannelTopic(struct chanNode *channel, struct userNode *service, struct userNode *user, const char *topic, int announce)
 {
     unsigned int n;
     struct modeNode *mn;
@@ -713,7 +713,7 @@ SetChannelTopic(struct chanNode *channel, struct userNode *user, const char *top
     if (announce) {
        /* We don't really care if a local user messes with the topic,
          * so don't call the tf_list functions. */
-       irc_topic(user, channel, topic);
+       irc_topic(service, user, channel, topic);
     } else {
        for (n=0; n<tf_used; n++)
            if (tf_list[n](user, channel, old_topic))
@@ -760,7 +760,6 @@ GetUserMode(struct chanNode *channel, struct userNode *user)
 struct userNode *IsInChannel(struct chanNode *channel, struct userNode *user)
 {
     unsigned int n;
-    struct modeNode *mn = NULL;
 
     verify(channel);
     verify(channel->members.list);