diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae412d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +env/ \ No newline at end of file diff --git a/plugin.py b/plugin.py index 580166c..0b8d698 100644 --- a/plugin.py +++ b/plugin.py @@ -42,6 +42,7 @@ import re import os import sys import time +import sqlite3 class SnoParser(callbacks.Plugin): """Parses the Server Notices from ErgoIRCd""" @@ -51,7 +52,7 @@ class SnoParser(callbacks.Plugin): (target, text) = msg.args if target == irc.nick: - # server notices CONNECT, KILL, XLINE + # server notices CONNECT, KILL, XLINE, NICK, ACCOUNT text = ircutils.stripFormatting(text) if 'CONNECT' in text: @@ -125,8 +126,8 @@ class SnoParser(callbacks.Plugin): self._sendSnotice(irc, msg, repl) # -ACCOUNT- Client [] registered account [] from IP # -ACCOUNT- Operator [] registered account [] with SAREGISTER - if 'ACCOUNT' in text and 'logged into account' in text: - accregex = "^-ACCOUNT- " + # if 'ACCOUNT' in text and 'logged into account' in text: + # accregex = "^-ACCOUNT- "