Explorar o código

* Change +bitch reaction to use normal queue for deopping opper/opped clients

Bryan Drewery %!s(int64=15) %!d(string=hai) anos
pai
achega
18b6ff2520
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  1. 2 0
      doc/UPDATES
  2. 4 0
      src/mod/irc.mod/mode.c

+ 2 - 0
doc/UPDATES

@@ -1,3 +1,5 @@
+* Change +bitch reaction to use normal queue for deopping opper/opped clients
+
 release
   * Add an extra 2 second delay before releasing nick to aide in syncing and time to type /nick
   * When a nick is released, start regaining as soon as it is witnessed to have been taken again

+ 4 - 0
src/mod/irc.mod/mode.c

@@ -579,12 +579,16 @@ got_op(struct chanset_t *chan, memberlist *m, memberlist *mv)
       size_t len = 0;
 /* should kick the oppee first, then deal with the opper */
 
+#ifdef old
       if (num == 4) {
         len = simple_snprintf(outbuf, sizeof(outbuf), "MODE %s -o %s\r\n", chan->name, mv->nick);
         mv->flags |= SENTDEOP;
       } else if (num == 5) {
         len = simple_snprintf(outbuf, sizeof(outbuf), "MODE %s -o %s\r\n", chan->name, m->nick);
         m->flags |= SENTDEOP;
+#endif
+      if (num == 5) {
+        add_mode(chan, '-', 'o', m->nick);
       } else if (bitch && num == 6) {
         len = simple_snprintf(outbuf, sizeof(outbuf), "KICK %s %s :%s\r\n", chan->name, mv->nick, response(RES_BITCHOPPED));
         mv->flags |= SENTKICK;