|
|
@@ -18,7 +18,7 @@ def do_command(self, connection, event):
|
|
|
if not self.db.one("SELECT statistics_commands FROM channels WHERE name='" + event.target + "' AND network='" + self.network + "'") and not event.target == connection.get_nickname():
|
|
|
return # Do noting if the games channel function is off and it's a channel message.
|
|
|
|
|
|
- if command == "cmd" or command == "commands":
|
|
|
+ if command == "cmd" or command == "cmds" or command == "commands":
|
|
|
if cmdtype == "cmd":
|
|
|
connection.privmsg(replyto, grey + "Statistics commands: " + CH.ccc(self, "seen") + CH.ccc(self, "joins") + CH.ccc(self, "kicks") + CH.ccc(self, "messages") + CH.ccc(self, "actions") + CH.ccc(self, "notices")[:-2] + ".")
|
|
|
|
|
|
@@ -144,9 +144,16 @@ def do_command(self, connection, event):
|
|
|
print("SELECT last_act_type FROM users WHERE LOWER(name)='" + command.split()[1] + "' AND network='" + self.network + "'")
|
|
|
print(self.db.one("SELECT last_act_type FROM users WHERE LOWER(name)='" + command.split()[1] + "' AND network='" + self.network + "'"))
|
|
|
connection.action(replyto, "has never seen " + red + command.split()[1] + reset + ".")
|
|
|
+ elif command.split()[1] == connection.get_nickname().lower():
|
|
|
+ connection.action(replyto, "never forgets to look in the mirror.")
|
|
|
+ elif command.split()[1] == event.source.nick:
|
|
|
+ connection.action(replyto, "holds up a mirror to " + event.source.nick)
|
|
|
else:
|
|
|
record = self.db.one("SELECT last_act_type, last_act_datetime, last_act_channel, last_act, last_act_auxiliary FROM users WHERE LOWER(name)='" + command.split()[1] + "' AND network='" + self.network + "'")
|
|
|
- action = "last saw " + red + trigger.split()[1] + reset + " "
|
|
|
+ if command.split()[1] == connection.get_nickname().lower():
|
|
|
+ action = "last act"
|
|
|
+ else:
|
|
|
+ action = "last saw " + red + trigger.split()[1] + reset + " "
|
|
|
print(record)
|
|
|
if record[0] == "nick":
|
|
|
action += "changing nickname to " + red + record[3]
|
|
|
@@ -192,10 +199,10 @@ def do_command(self, connection, event):
|
|
|
action += blue + "just now."
|
|
|
elif differential.seconds < 60: # Less then a minute.
|
|
|
action += green + str(differential.seconds) + blue + " seconds " + reset + "ago."
|
|
|
- elif differential.seconds == 60: # 1 minute.
|
|
|
+ elif differential.seconds / 60 == 1: # 1 minute.
|
|
|
action += green + "1 " + blue + "minute " + reset + "ago."
|
|
|
elif int(differential.seconds / 60) < 60: # Less then an hour.
|
|
|
- action += green + str(int(differential.seconds / 60)) + " minutes " + reset + "ago."
|
|
|
+ action += green + str(int(differential.seconds / 60)) + blue + " minutes " + reset + "ago."
|
|
|
elif int(differential.seconds / 60) == 60: # 1 hour.
|
|
|
action += green + "1 " + blue + "hour " + reset + "ago."
|
|
|
elif int(differential.seconds / 3600) < 24 : # Less then a day.
|