|
|
@@ -59,20 +59,24 @@ class CommandHelpers():
|
|
|
return blue + self.cmdchar + command + reset + ", "
|
|
|
|
|
|
def get_channelfunctions(self, channel):
|
|
|
- channelfunctions = self.db.one("SELECT join_greeting, statistics_commands, games FROM channels WHERE name='" + channel + "' AND network='" + self.network + "'")
|
|
|
+ channelfunctions = self.db.one("SELECT autojoin, join_greeting, statistics_commands, games FROM channels WHERE name='" + channel + "' AND network='" + self.network + "'")
|
|
|
if channelfunctions[0]:
|
|
|
+ autojoin = "on"
|
|
|
+ else:
|
|
|
+ autojoin = "off"
|
|
|
+ if channelfunctions[1]:
|
|
|
joingreet = "on"
|
|
|
else:
|
|
|
joingreet = "off"
|
|
|
- if channelfunctions[1]:
|
|
|
+ if channelfunctions[2]:
|
|
|
statscmds = "on"
|
|
|
else:
|
|
|
statscmds = "off"
|
|
|
- if channelfunctions[2]:
|
|
|
+ if channelfunctions[3]:
|
|
|
games = "on"
|
|
|
else:
|
|
|
games = "off"
|
|
|
- return ("join_greeting " + joingreet + ", statistics_commands " + statscmds + ", games " + games + ".")
|
|
|
+ return ("autojoin" + autojoin + ", join_greeting " + joingreet + ", statistics_commands " + statscmds + ", games " + games + ".")
|
|
|
|
|
|
def is_channelfunction(self, value):
|
|
|
if value not in ["join_greeting", "statistics_commands", "games"]:
|