tBKwtWS 6 年之前
父节点
当前提交
f2fc05454f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rotbot/events/on_join.py

+ 1 - 1
rotbot/events/on_join.py

@@ -30,7 +30,7 @@ def process_event(self, connection, event):
         # connection.who(self.homechannel)    # Get whoreplies for users of homechannel.
         # connection.who(self.homechannel)    # Get whoreplies for users of homechannel.
         if self.channels[event.target].has_key():   # Passworded channel.
         if self.channels[event.target].has_key():   # Passworded channel.
             if event.target in self.channelkeys:    # New key used to join channel.
             if event.target in self.channelkeys:    # New key used to join channel.
-                self.db.run('UPDATE rotbot_channels SET key=%(key)s WHERE id=%(id)s', key=self.channelkeys[event.target], channel.id)    # Save new key to DB.
+                self.db.run('UPDATE rotbot_channels SET key=%(key)s WHERE id=%(id)s', key=self.channelkeys[event.target], id=channel.id)    # Save new key to DB.
         # if event.target == self.homechannel:    # Home channel.
         # if event.target == self.homechannel:    # Home channel.
         #     connection.who(connection.get_nickname())   # get whoreply to add bot to protectees.
         #     connection.who(connection.get_nickname())   # get whoreply to add bot to protectees.
        # return  # Do not greet myself.
        # return  # Do not greet myself.