forked from LimnoriaPlugins/SnoParser
latest build
This commit is contained in:
parent
c44b03e2ae
commit
9810f1ca99
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
env/
|
@ -42,6 +42,7 @@ import re
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
import sqlite3
|
||||||
|
|
||||||
class SnoParser(callbacks.Plugin):
|
class SnoParser(callbacks.Plugin):
|
||||||
"""Parses the Server Notices from ErgoIRCd"""
|
"""Parses the Server Notices from ErgoIRCd"""
|
||||||
@ -51,7 +52,7 @@ class SnoParser(callbacks.Plugin):
|
|||||||
(target, text) = msg.args
|
(target, text) = msg.args
|
||||||
if target == irc.nick:
|
if target == irc.nick:
|
||||||
|
|
||||||
# server notices CONNECT, KILL, XLINE
|
# server notices CONNECT, KILL, XLINE, NICK, ACCOUNT
|
||||||
|
|
||||||
text = ircutils.stripFormatting(text)
|
text = ircutils.stripFormatting(text)
|
||||||
if 'CONNECT' in text:
|
if 'CONNECT' in text:
|
||||||
@ -125,8 +126,8 @@ class SnoParser(callbacks.Plugin):
|
|||||||
self._sendSnotice(irc, msg, repl)
|
self._sendSnotice(irc, msg, repl)
|
||||||
# -ACCOUNT- Client [<redacted-hostmask>] registered account [<redacted>] from IP <redacted>
|
# -ACCOUNT- Client [<redacted-hostmask>] registered account [<redacted>] from IP <redacted>
|
||||||
# -ACCOUNT- Operator [<redacted>] registered account [<redacted>] with SAREGISTER
|
# -ACCOUNT- Operator [<redacted>] registered account [<redacted>] with SAREGISTER
|
||||||
if 'ACCOUNT' in text and 'logged into account' in text:
|
# if 'ACCOUNT' in text and 'logged into account' in text:
|
||||||
accregex = "^-ACCOUNT- "
|
# accregex = "^-ACCOUNT- "
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user