Ignore:
Timestamp:
12/09/09 17:53:36 (2 years ago)
Author:
james
Message:

handle blank botnicks setting properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/system.tcl

    r1030 r1055  
    620620        if {$botnicks == ""} { 
    621621                # need to set this 
    622                 set botnicks "($botnick|$bMotionSettings(botnicks)) ?" 
     622                if {[bMotion_setting_get "botnicks"] == ""} { 
     623                        set botnicks "$botnicks ?" 
     624                } else { 
     625                        set botnicks "($botnick|$bMotionSettings(botnicks)) ?" 
     626                } 
    623627        } 
    624628 
     
    950954 
    951955        if {$botnicks == ""} { 
    952                 set botnicks "($botnick|$bMotionSettings(botnicks)) ?" 
     956                if {[bMotion_setting_get "botnicks"] == ""} { 
     957                        set botnicks "($botnick) ?" 
     958                } else { 
     959                        set botnicks "($botnick|$bMotionSettings(botnicks)) ?" 
     960                } 
    953961                if {[bMotion_setting_get "botnicks_strict"] == 1} { 
    954962                        set botnicks "\\m$botnicks\\M" 
Note: See TracChangeset for help on using the changeset viewer.