diff options
| author | Pratyush Desai | 2021-08-18 15:09:38 +0530 |
|---|---|---|
| committer | Pratyush Desai | 2021-08-18 15:09:38 +0530 |
| commit | 9810f1ca99e6d8283bc33cae218b02e4cd795cba (patch) | |
| tree | b11c31d36e9f619bde6a278229f94c4b27f64dcf | |
| parent | c44b03e2aeb949db26de1f6dad4fe1e79cd529fc (diff) | |
| download | snoparser-9810f1ca99e6d8283bc33cae218b02e4cd795cba.tar.gz snoparser-9810f1ca99e6d8283bc33cae218b02e4cd795cba.tar.bz2 snoparser-9810f1ca99e6d8283bc33cae218b02e4cd795cba.zip | |
latest build
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | plugin.py | 7 |
2 files changed, 5 insertions, 3 deletions
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 @@ -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 [<redacted-hostmask>] registered account [<redacted>] from IP <redacted> # -ACCOUNT- Operator [<redacted>] registered account [<redacted>] 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- " |
