|
|
@@ -256,7 +256,8 @@ def do_command(self, connection, event):
|
|
|
return
|
|
|
if command.split()[1].lower() == "autojoin" and event.target == self.homechannel: # Chaning autojoin of homechannel.
|
|
|
connection.action(replyto, "will always join it's homechannel " + red + self.homechannel + reset + ", regardless of the autojoin function.")
|
|
|
- self.db.run("UPDATE channels SET " + command.split()[1].lower() + "='" + command.split()[2].lower() + "' WHERE name='" + event.target + "' AND network='" + self.network + "'")
|
|
|
+ #self.db.run("UPDATE channels SET " + command.split()[1].lower() + "='" + command.split()[2].lower() + "' WHERE name='" + event.target + "' AND network='" + self.network + "'")
|
|
|
+ self.db.run("UPDATE channels SET " + command.split()[1].lower() + "=%s WHERE name='" + event.target + "' AND network='" + self.network + "'", (command.split()[2].lower(), ))
|
|
|
|
|
|
elif len(command.split()) == 4: # Three arguments.
|
|
|
if not command.split()[1] in self.channels: # Bot does not inhabit channel to be altered.
|