Changeset 1063


Ignore:
Timestamp:
01/17/10 06:57:26 (2 years ago)
Author:
james
Message:

escape regexp chars that can appear in nicks (fix #169)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/system.tcl

    r1055 r1063  
    953953        global botnicks bMotionSettings botnick 
    954954 
     955        set safe_botnick [string map { "|" "\\|" "^" "\\^" "{" "\\{" "}" "\\}" "\[" "\\\[" "\]" "\\\]" } $botnick] 
    955956        if {$botnicks == ""} { 
    956957                if {[bMotion_setting_get "botnicks"] == ""} { 
    957                         set botnicks "($botnick) ?" 
     958                        set botnicks "($safe_botnick) ?" 
    958959                } else { 
    959                         set botnicks "($botnick|$bMotionSettings(botnicks)) ?" 
     960                        set botnicks "($safe_botnick|$bMotionSettings(botnicks)) ?" 
    960961                } 
    961962                if {[bMotion_setting_get "botnicks_strict"] == 1} { 
Note: See TracChangeset for help on using the changeset viewer.