|
@@ -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.
|