Changeset 310


Ignore:
Timestamp:
09/29/03 09:51:44 (8 years ago)
Author:
kevdadrum
Message:

Moved jms' real wellbeing code into a module called from the question handler. This should unbreak it ("what's X" was overriding it in some cases)

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r258 r310  
    66- = removed 
    77 
     8*  Kevin           moved the handling of jms' (real) wellbeing code into an extra module, and referenced it from complex question 
    89*  James           fixed spelling error in name of onjoin plugin 
    910*  James           fixed onjoin plugin to use new abstracts system 
  • trunk/plugins/en/complex_questions.tcl

    r284 r310  
    3636  ## wellbeing question targeted at me 
    3737  if { [regexp -nocase "^$botnicks,?:? how( a|')?re (you|ya)" $text] || 
    38        [regexp -nocase "^how( a|')?re (you|ya).*$botnicks ?\\?" $text] } { 
    39     bMotion_plugin_complex_question_wellbeing $nick $channel $host 
    40     return 1 
    41   } 
    42  
     38       [regexp -nocase "^how( a|')?re (you|ya).*$botnicks ?\\?" $text] || 
     39       [regexp -nocase "${botnicks}?:? ?(how('?s|z) it going|hoe gaat het|what'?s up|'?sup|how are you),?( ${botnicks})?\\?" $text]} { 
     40    bMotion_question_wellbeing $nick $channel $host 
     41    return 1 
     42  } 
     43   
     44     
    4345  bMotion_putloglev 3 * "Checking question for 'with/at/against'" 
    4446  ## With/at/against who question targeted at me 
     
    191193} 
    192194 
    193 proc bMotion_plugin_complex_question_wellbeing { nick channel host } { 
    194   bMotion_putloglev 2 * "$nick wellbeing question" 
    195   bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{answerWellbeing}" 
    196   return 1 
    197 } 
    198  
    199195proc bMotion_plugin_complex_question_with { nick channel host prop } { 
    200196  bMotion_putloglev 2 * "$nick with question" 
Note: See TracChangeset for help on using the changeset viewer.