Changeset 1133


Ignore:
Timestamp:
12/24/11 08:00:29 (5 months ago)
Author:
james
Message:

Updates to randomstuff
Adjust behaviour when opped by another bot

Location:
trunk/modules
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/abstracts/en/randomstuff.tcl

    r1132 r1133  
    88bMotion_abstract_reset "randomStuff" 
    99bMotion_abstract_batchadd "randomStuff" { 
     10        "%VAR{sillyThings:strip} just kicked in yo!%|%VAR{sound}" 
     11        "my %VAR{bodypart} is itchy, is that normal?" 
    1012        "%VAR{FRENCH}" 
    1113        "%VAR{blairisms}" 
     
    548550### Used when the channel is 'active' (default < 300 sec since last line) 
    549551bMotion_abstract_register "activeRandomStuff" { 
     552        "and near the milkshake" 
     553        "just think how sexy you'd look with my %VAR{bodypart} in your mouth" 
     554        "just think how sexy you'd look with my %VAR{bodypart} in your %VAR{bodypart}" 
    550555        "%ruser really puts the %VAR{sillyThings:strip,triplet} in %VAR{sillyThings:prevtriplet}!" 
    551556        "and in the game" 
  • trunk/modules/events.tcl

    r1109 r1133  
    523523                } 
    524524                if {$diff > 900} { 
    525                         bMotionDoAction $channel $nick "%VAR{opped}" 
     525                        if [bMotion_interbot_is_bmotion $handle] { 
     526                                bMotionDoAction $channel $nick "%VAR{thanks}" 
     527                                bMotionDoAction $channel $nick "%BOT[@$handle,VAR{welcomes}" 
     528                        } else { 
     529                                bMotionDoAction $channel $nick "%VAR{opped}" 
     530                        } 
    526531                } else { 
    527532                        bMotion_putloglev d * "Not responding to +o in $channel as I was only deopped $diff seconds ago" 
  • trunk/modules/interbot.tcl

    r1112 r1133  
    393393} 
    394394 
     395 
     396# bMotion_interbot_is_bmotion 
     397# 
     398# checks if another bot is a bmotion bot 
     399proc bMotion_interbot_is_bmotion { handle } { 
     400        global bMotion_interbot_otherbots 
     401 
     402        if [info exists bMotion_interbot_otherbots($handle)] { 
     403                return 1 
     404        } 
     405        return 0 
     406} 
     407 
     408 
    395409# set up our binds 
    396410bind bot - "bmotion" bMotion_interbot_catch 
  • trunk/modules/plugins.tcl

    r1019 r1133  
    290290        set result [list] 
    291291 
     292        bMotion_putloglev 5 * "bMotion_plugin_find_output lang=$lang channel=$channel min=$min_priority max=$max_priority name=$name" 
     293 
    292294        foreach key [lsort [array names bMotion_plugins_output]] { 
    293295                set val $bMotion_plugins_output($key) 
     
    307309                } 
    308310 
    309                 if {!([string match $lang $language] && ($language != "any") && ($language != "all"))} { 
     311                if {(![string match $lang $language] && ($language != "any") && ($language != "all"))} { 
    310312                        bMotion_putloglev 3 * "macro: ignoring $key on language" 
    311                         bMotion_putloglev 3 * "macro: plugin is $lang, want $language" 
     313                        bMotion_putloglev 3 * "macro: plugin is $language, want $lang" 
    312314                        continue 
    313315                } 
     
    336338        } 
    337339 
     340        bMotion_putloglev 4 * "Returning list of plugins for $channel: $result2" 
    338341        return $result2 
    339342} 
Note: See TracChangeset for help on using the changeset viewer.