better regex matching for quiet list at startup

This commit is contained in:
Jimmy Cao 2011-12-29 10:35:30 -06:00
parent 012cf83607
commit 2d3862ffaf

View File

@ -60,7 +60,7 @@ def connect_callback(cli):
@hook("quietlist", id=294) @hook("quietlist", id=294)
def on_quietlist(cli, server, botnick, channel, q, quieted, by, something): def on_quietlist(cli, server, botnick, channel, q, quieted, by, something):
if re.match(".+\!.+@.+", quieted): # only unquiet people quieted by bot if re.match(".+\!\*@\*", quieted): # only unquiet people quieted by bot
cmodes.append(("-q", quieted)) cmodes.append(("-q", quieted))
@hook("quietlistend", id=294) @hook("quietlistend", id=294)