tBKwtWS před 7 roky
rodič
revize
4b8d44db75
2 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 2 2
      common/do_everything_to.py
  2. 1 1
      events/on_kick.py

+ 2 - 2
common/do_everything_to.py

@@ -29,6 +29,6 @@ def kick(connection, channel, user, reason):
     ChanServ.kick(connection, channel, user, reason)
     connection.kick(channel, user, reason)
 
-def bankick(connection, channel, user, reason):
-    ban(connection, channel, user, reason)
+def bankick(connection, channel, user, mask, reason):
+    ban(connection, channel, user, mask, reason)
     kick(connection, channel, user, reason)

+ 1 - 1
events/on_kick.py

@@ -114,4 +114,4 @@ def process_event(self, connection, event):
         ChanServ.tempban(connection, channel, kicker, "1h", "Aggression channel function = equal_retalliation: " + kicked)
         connection.mode(channel, "+e " + kicked)  # Excempt operator.
         ChanServ.akick_add(connection, channel, kicker) # Add kicker to ChanServs autokick.
-        do_everything_to.bankick(connection, channel, kicker, "Aggression channel function = equal_retalliation: " + kicked)
+        do_everything_to.bankick(connection, channel, kicker, event.source, "Aggression channel function = equal_retalliation: " + kicked)