Forbid hooks for certain functions
parent
4fb9723396
commit
28d6f2b82f
3
chop.py
3
chop.py
|
@ -7,7 +7,7 @@ import os, web, re
|
|||
|
||||
chop = {}
|
||||
chop["badword_limit"] = 4
|
||||
chop["badword_enabled"] = True
|
||||
chop["badword_enabled"] = False
|
||||
chop["badword_kickmsg"] = "Chop!" # "Stop using bad words!"
|
||||
chop["victims"] = {} # for future use
|
||||
badword_list = "" # TODO: Get badword list from somewhere
|
||||
|
@ -145,6 +145,7 @@ def badword_watcher(phenny, input):
|
|||
|
||||
badword_watcher.priority = 'high'
|
||||
badword_watcher.rule = r'.*'
|
||||
badword_watcher.nohook = True
|
||||
|
||||
def badword_ctrl(phenny, input):
|
||||
if not input.admin: return
|
||||
|
|
|
@ -125,6 +125,7 @@ def rsscheck(phenny, input):
|
|||
rsscheck.priority = 'medium'
|
||||
rsscheck.rule = r'.*'
|
||||
rsscheck.event = '*'
|
||||
rsscheck.nohook = True
|
||||
|
||||
if __name__ == '__main__':
|
||||
print __doc__.strip()
|
||||
|
|
3
seen.py
3
seen.py
|
@ -86,6 +86,7 @@ def note(phenny, input):
|
|||
note.rule = r'.*'
|
||||
note.priority = 'low'
|
||||
note.thread = False
|
||||
note.nohook = True
|
||||
|
||||
def note_join(phenny, input):
|
||||
if input.sender.startswith('#'):
|
||||
|
@ -95,6 +96,7 @@ note_join.rule = r'.*'
|
|||
note_join.event = 'JOIN'
|
||||
note_join.priority = 'low'
|
||||
note_join.thread = False
|
||||
note_join.nohook = True
|
||||
|
||||
def note_part(phenny, input):
|
||||
if input.sender.startswith('#'):
|
||||
|
@ -104,6 +106,7 @@ note_part.rule = r'.*'
|
|||
note_part.event = 'PART'
|
||||
note_part.priority = 'low'
|
||||
note_part.thread = False
|
||||
note_part.nohook = True
|
||||
|
||||
db = sqlite3.connect("seen.sqlite")
|
||||
c = db.cursor()
|
||||
|
|
2
tell.py
2
tell.py
|
@ -80,6 +80,7 @@ def note(phenny, input):
|
|||
|
||||
note.rule = r'.*'
|
||||
note.priority = 'low'
|
||||
note.nohook = True
|
||||
|
||||
def note_join(phenny, input):
|
||||
if input.sender.startswith('#'):
|
||||
|
@ -88,6 +89,7 @@ def note_join(phenny, input):
|
|||
note_join.rule = r'.*'
|
||||
note_join.event = 'JOIN'
|
||||
note_join.priority = 'low'
|
||||
note_join.nohook = True
|
||||
|
||||
db = sqlite3.connect("tell.sqlite")
|
||||
c = db.cursor()
|
||||
|
|
Loading…
Reference in New Issue