Commits

Jason R. Coombs committed 2b99f48

Allow keyword args to regexp decorator

Comments (0)

Files changed (1)

 		],
 	).decorate
 
-def regexp(name, regexp, doc=None):
+def regexp(name, regexp, doc=None, **kwargs):
 	return RegexpHandler(
 		name=name.lower(),
 		doc=doc,
 		pattern=re.compile(regexp, re.IGNORECASE),
+		**kwargs
 	).decorate
 
 def execdelay(name, channel, howlong, args=[], doc=None, repeat=False):