|
|
@@ -5,20 +5,10 @@ import irc.bot#, irc.strings
|
|
|
from irc.client import ip_numstr_to_quad#, ip_quad_to_numstr
|
|
|
from postgres import Postgres
|
|
|
import commands.public, commands.admin, commands.games, commands.statistics
|
|
|
-import events.on_welcome, events.on_join, events.on_kick, events.on_mode, events.on_pubmsg, events.on_whoreply, events.on_nick
|
|
|
+import events.on_welcome, events.on_join, events.on_kick, events.on_mode, events.on_pubmsg, events.on_action, events.on_whoreply, events.on_nick
|
|
|
from common import log
|
|
|
from common.networkservices import NickServ
|
|
|
|
|
|
-bold = "\x02"
|
|
|
-italic = "\x1D"
|
|
|
-underline = "\x1F"
|
|
|
-reverse = "\x16" # swap background and foreground colors ("reverse video")
|
|
|
-reset = "\x0F"
|
|
|
-blue = "\x0302"
|
|
|
-green = "\x0303"
|
|
|
-red = "\x0304"
|
|
|
-grey = "\x0314"
|
|
|
-
|
|
|
class PyRot(irc.bot.SingleServerIRCBot):
|
|
|
def __init__(self, network, db, homechannel, nickname, username, password, host, port=6667, usessl=False, cmdchar="!", helpchar="@"):
|
|
|
self.network = network
|
|
|
@@ -113,7 +103,7 @@ class PyRot(irc.bot.SingleServerIRCBot):
|
|
|
connection.join(event.arguments[0].split(' ')[3], event.arguments[0].split(' ')[5][:-1])
|
|
|
|
|
|
def on_action(self, connection, event):
|
|
|
- log.info(event)
|
|
|
+ events.on_action.process_event(self, connection, event)
|
|
|
|
|
|
|
|
|
def on_whoreply(self, connection, event):
|