@require_chanmsg
@require_privilege(OP, u'You are not a channel operator.')
@commands(u'tmask')
def set_mask(bot, trigger):
 bot.db.set_channel_value(trigger.sender, u'topic_mask', trigger.group(2))
 bot.say((u'Gotcha, ' + trigger.nick))

@ require_chanmsg @ require_privilege ( OP , u'You are not a channel operator.' ) @ commands ( u'tmask' ) def set_mask ( bot , trigger ) : bot . db . set_channel_value ( trigger . sender , u'topic_mask' , trigger . group ( 2 ) ) bot . say ( ( u'Gotcha, ' + trigger . nick ) )
set the mask to use for .