Changeset 259 for trunk/plugins/en/irc_join.tcl
- Timestamp:
- 09/15/03 12:03:35 (9 years ago)
- File:
-
- 1 edited
-
trunk/plugins/en/irc_join.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/irc_join.tcl
r258 r259 11 11 ############################################################################### 12 12 13 14 bMotion_plugin_add_irc_event "default join" "join" ".*" 80 "bMotion_plugins_irc_default_join" "en"15 13 16 14 proc bMotion_plugins_irc_default_join { nick host handle channel text } { … … 29 27 set chance [rand 10] 30 28 set greetings [bMotion_abstract_all "ranjoins"] 31 if {$chance > 8} { 32 if [matchattr $handle I] { 33 set greetings [concat $greetings [bMotion_abstract_all "bigranjoins"] 34 if {$nick == $bMotionCache(lastLeft)} { 35 set greetings [bMotion_abstract_all "welcomeBacks"] 36 set bMotionCache(lastLeft) "" 37 } 38 incr mood(happy) 39 incr mood(lonely) -1 29 if {$handle != "*"} { 30 set greetings [concat $greetings [bMotion_abstract_all "bigranjoins"]] 31 set greetings [concat $greetings [bMotion_abstract_all "insult_joins"]] 32 if {$nick == $bMotionCache(lastLeft)} { 33 set greetings [bMotion_abstract_all "welcomeBacks"] 34 set bMotionCache(lastLeft) "" 40 35 } 36 incr mood(happy) 37 incr mood(lonely) -1 38 } 41 39 42 #set nick [bMotion_cleanNick $nick $handle]40 #set nick [bMotion_cleanNick $nick $handle] 43 41 44 bMotionDoAction $channel [bMotionGetRealName $nick $host] [pickRandom $greetings] 45 set bMotionCache(lastGreeted) $nick 46 bMotion_plugins_settings_set "system:join" "lasttalk" $channel "" 1 47 } 42 bMotionDoAction $channel [bMotionGetRealName $nick $host] [pickRandom $greetings] 43 set bMotionCache(lastGreeted) $nick 44 bMotion_plugins_settings_set "system:join" "lasttalk" $channel "" 1 48 45 49 46 return 0 50 47 } 51 48 49 bMotion_plugin_add_irc_event "default join" "join" ".*" 75 "bMotion_plugins_irc_default_join" "en" 50 51 bMotion_abstract_register "insult_joins" 52 bMotion_abstract_batchadd "insult_joins" [list "%ruser: yeah, %% does suckOH HI %%!" "\[%%\] I'm a %VAR{PROM}%|%VAR{wrong_infoline}" "\[%%\] I love %ruser%|%VAR{wrong_infoline}"] 53 54 bMotion_abstract_register "wrong_infoline" 55 bMotion_abstract_batchadd "wrong_infoline" [list "oops, wrong infoline, sorry" "huk, wrong infoline" "whoops" "o wait not that infoline"]
Note: See TracChangeset
for help on using the changeset viewer.
