Changeset 1009


Ignore:
Timestamp:
06/19/09 13:53:40 (3 years ago)
Author:
james
Message:

add "botnicks_strict" setting to wrap end-of-word markers around botnicks

Location:
trunk/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/settings.sample.tcl

    r984 r1009  
    5353# your bot will automatically add its own nick to this 
    5454set bMotionSettings(botnicks) "nt|bots|the bots|notopic" 
     55 
     56# should the bot strictly match the botnicks? 
     57# "old" behaviour did not require the botnicks to be a word by itself, 
     58# which could cause the bot to respond when it shouldn't really 
     59#  
     60# for the regexp-inclined, this setting makes bMotion surround the 
     61# botnicks value with \m...\M 
     62# 
     63# old behaviour = 0 
     64# new behaviour = 1 
     65set bMotionSettings(botnicks_strict) 1 
    5566 
    5667# does the bot like 'kinky' stuff (e.g. see action_complex:fucks) 
  • trunk/modules/system.tcl

    r1006 r1009  
    951951        if {$botnicks == ""} { 
    952952                set botnicks "($botnick|$bMotionSettings(botnicks)) ?" 
     953                if {[bMotion_setting_get "botnicks_strict"] == 1} { 
     954                        set botnicks "\\m$botnicks\\M" 
     955                } 
    953956        } 
    954957} 
Note: See TracChangeset for help on using the changeset viewer.