Ignore:
Timestamp:
09/10/03 06:59:14 (9 years ago)
Author:
kevdadrum
Message:

A "how're you" question handler, last commit threw a fit because I used ../ in the path to commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/en/complex_questions.tcl

    r251 r252  
    3030    if {($term == "") && (![bMotionTalkingToMe $text])} { return 0 } 
    3131    bMotion_plugin_complex_question_what $nick $channel $host $question 
     32    return 1 
     33  } 
     34 
     35  bMotion_putloglev 3 * "Checking question for wellbeing" 
     36  ## wellbeing question targeted at me 
     37  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 
    3240    return 1 
    3341  } 
     
    176184 
    177185proc bMotion_plugin_complex_question_when { nick channel host } { 
    178     bMotion_putloglev 2 * "$nick When question" 
     186  bMotion_putloglev 2 * "$nick When question" 
    179187  bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{answerWhens}" 
    180188  return 1 
    181189} 
    182190 
     191proc bMotion_plugin_complex_question_wellbeing { nick channel host } { 
     192  bMotion_putloglev 2 * "$nick wellbeing question" 
     193  bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{answerWellbeing}" 
     194  return 1 
     195} 
     196 
    183197proc bMotion_plugin_complex_question_with { nick channel host prop } { 
    184     bMotion_putloglev 2 * "$nick with question" 
     198  bMotion_putloglev 2 * "$nick with question" 
    185199  set answer "$prop %VAR{answerWithWhos}" 
    186200  bMotionDoAction $channel [bMotionGetRealName $nick $host] $answer 
Note: See TracChangeset for help on using the changeset viewer.