Ticket #13: complex-smiley.diff

File complex-smiley.diff, 0.7 KB (added by bmotion, 2 years ago)

Removing bMotionCache from complex smiley, hopefully using the history check correctly

  • plugins/en/complex_smiley.tcl

     
    2121 
    2222proc bMotion_plugin_complex_smiley { nick host handle channel text } { 
    2323  global mood 
    24   global bMotionCache 
    2524 
    2625  if {![bMotion_interbot_me_next $channel]} { return 0 } 
    2726 
    28   if {$bMotionCache(lastPlugin) == "bMotion_plugin_complex_smiley"} { 
    29     return 0 
     27  foreach i {"smiley" "smiley2" "smiley3" "smiley4" "smiley5"} { 
     28        bMotion_putloglev d * "checking $i" 
     29         
     30    if {[bMotion_plugin_history_check $channel "complex" $i]} { 
     31          return 0 
     32        } 
    3033  } 
    3134 
    3235  if {$mood(happy) < 0} {