Changeset 1134


Ignore:
Timestamp:
01/21/12 09:33:53 (4 months ago)
Author:
james
Message:

don't break when seeing "i suck"

File:
1 edited

Legend:

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

    r1084 r1134  
    2121        if [regexp -nocase {([a-z0-9]+) (all )?suck[.!]*$} $text matches item] { 
    2222                if {![regexp -nocase $stoplist $item]} { 
     23                        if {($item == "I") || ($item == "i")} { 
     24                                set item $nick 
     25                        } 
    2326                        bMotionDoAction $channel $item "%VAR{sucks}" 
    2427                        return 1 
     
    2932                if [regexp -nocase $stoplist $item] { 
    3033                        return 0 
     34                } 
     35                if {($item == "I") || ($item == "i")} { 
     36                        set item $nick 
    3137                } 
    3238                bMotionDoAction $channel $item "%VAR{sucks}" 
Note: See TracChangeset for help on using the changeset viewer.