Ignore:
Timestamp:
09/28/03 13:55:00 (9 years ago)
Author:
jamesoff
Message:

better handling for being a lonesome bot (hopefully)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/interbot.tcl

    r302 r303  
    187187} 
    188188 
    189  
    190 if {![info exists bMotion_interbot_nextbot_score]} { 
    191   # init the nextbot array for each channel 
    192  
    193   foreach chan $bMotionInfo(randomChannels) { 
    194     set bMotion_interbot_nextbot_score($chan) "-1" 
    195     set bMotion_interbot_nextbot_nick($chan) "" 
    196   } 
    197 } 
    198  
    199189# Check if we're due to talk next on the channel 
    200190# if yes, then force an election for that channel immediately afterwards 
     
    236226} 
    237227 
     228#call an election when we start/rehash 
     229foreach chan $bMotionInfo(randomChannels) { 
     230  set bMotion_interbot_nextbot_score($chan) "-1" 
     231  set bMotion_interbot_nextbot_nick($chan) "" 
     232} 
     233bMotion_interbot_next_elect 
     234 
    238235#interbot stuff 
    239236bind bot I "bmotion" bMotion_interbot_catch 
Note: See TracChangeset for help on using the changeset viewer.