Ticket #13 (new enhancement)
Stop using $bMotionCache
| Reported by: | james | Owned by: | james |
|---|---|---|---|
| Priority: | major | Milestone: | 0.2.0 |
| Component: | core modules | Version: | 0.0.9 |
| Keywords: | Cc: |
Description
Use plugins_settings_* instead, like [651] and #4 started to fix.
% grep -ri last * | grep Cache | grep -v svn
bMotion.tcl: set bMotionCache($letter,lastlog) ""
bMotion.tcl: set bMotionCache($letter,lastcount) 0
bMotion.tcl: if {$bMotionCache($level,lastlog) == $text} {
bMotion.tcl: incr bMotionCache($level,lastcount)
bMotion.tcl: if {$bMotionCache($level,lastcount) > 0} {
bMotion.tcl: putloglev $level $star "($level)Previous message repeated $bMotionCache($level,lastcount) time(s)"
bMotion.tcl: set bMotionCache($level,lastlog) $text
bMotion.tcl: set bMotionCache($level,lastcount) 0
modules/mood.tcl: set bMotionCache(lastHows) ""
modules/output.tcl: set bMotionCache($channel,last) 1
modules/output.tcl: set what [array get bMotionCache "lastruser$bot"]
modules/events_support.tcl: set bMotionCache(lastDoneFor) $nick
modules/events.tcl: set bMotionCache($channel,last) 0
modules/events.tcl: set bMotionCache(lastLeft) $nick
modules/events.tcl: set bMotionCache(lastLeft) $nick
modules/events.tcl: global bMotionLastEvent bMotionSettings botnicks bMotionCache bMotionInfo
modules/events.tcl: set bMotionCache($channel,last) 0
modules/events.tcl: if {![regexp -nocase $botnicks $text] && ($bMotionCache($channel,last) || [bMotion_setting_get "bitlbee"])} {
modules/events.tcl: if {[regexp -nocase "(i'm not talking to|not) you" $text] && $bMotionCache($channel,last)} {
modules/events.tcl: set bMotionCache($channel,last) 0
modules/events.tcl: set bMotionCache($channel,last) 0
modules/events.tcl: set bMotionCache(lastPlugin) $callback
modules/events.tcl: set bMotionCache($channel,last) 0
modules/variables.tcl: set bMotionCache(lastGreeted) ""
modules/variables.tcl: set bMotionCache(lastHows) ""
modules/variables.tcl: set bMotionCache(lastDoneFor) ""
modules/variables.tcl: set bMotionCache(lastLeft) ""
modules/variables.tcl: set bMotionCache(lastPlugin) ""
modules/variables.tcl: set bMotionCache(last_simple) ""
modules/plugins.tcl: if {$bMotionCache(last_simple) == $key} {
modules/plugins.tcl: set bMotionCache(last_simple) $key
modules/system.tcl: set bMotionCache($chan,last) 0
modules/system.tcl: if ($bMotionCache($channel,last)) {
plugins/en/complex_replicate.tcl: set bMotionCache(lastDoneFor) $nick
plugins/en/complex_replicate.tcl: set bMotionCache(lastDoneFor) $nick
plugins/en/complex_replicate.tcl: set bMotionCache(lastDoneFor) $nick
plugins/en/irc_nick_away.tcl: set bMotionCache(lastDoneFor) $nick
plugins/en/complex_sorry.tcl: #if {![regexp -nocase $nick $bMotionCache(lastEvil)]} {return 0}
plugins/en/complex_sorry.tcl: #set bMotionCache(lastEvil) ""
plugins/en/action_complex_pinch.tcl: #set bMotionCache(lastEvil) $nick
plugins/en/complex_smiley.tcl: if {$bMotionCache(lastPlugin) == "bMotion_plugin_complex_smiley"} {
plugins/en/complex_love.tcl: set bMotionCache(lastDoneFor) $nick
plugins/en/complex_love.tcl: set bMotionCache(lastDoneFor) $nick
plugins/en/complex_shocked.tcl: if {$bMotionCache($channel,last)} {
plugins/en/complex_sex.tcl: set bMotionCache(lastDoneFor) "$nick $forNick"
plugins/fr/action_complex_pinch.tcl: #set bMotionCache(lastEvil) $nick
Attachments
Change History
comment:1 Changed 6 years ago by anonymous
- Priority changed from major to critical
- Type changed from enhancement to task
- Version 0.0.9 deleted
- Component changed from core modules to abstracts
- Milestone changed from 0.1.0 to 0.2.0
comment:2 Changed 6 years ago by anonymous
- Priority changed from critical to blocker
- Type changed from task to defect
- Version set to 0.0.9
- Component changed from abstracts to extra modules
- Milestone 0.2.0 deleted
best design page software web computer refurbished toronto cable internet deal computer networking baltimore blue keyboard microsoft mouse tooth apple computer first invented who computer game in kid bb domain eminent t flash web design software cmms maintenance software 320p acer driver prisa scanner charter cable internet free on line virus scanner camera internet wireless career in computer programming oklahoma scanner frequency code burning download dvd software flatbed scanner for mac computer information job system computer hp rental canon printer cartridge bc 02 hosting server shared free dvd decoding software dark glow in paper printer monitor is in power save mode activate using pc computer product power supply internet computer class discount pc software 6 explorer internet upgrade best domain hosting services construction payroll software design fashion online study where internet job search courtyard design house interior pny computer memory virus anti virus software computer education handheld hp ipaq foldable keyboard direct way satellite internet commercial design firm interior 7 internet mcafee security suite hot tub and patio design toshiba notebook computer child game internet play internet search engine advertising photo stitching software 19 crt lacie monitor bedroom design for girl computer help slow running computer consultant data transfer
comment:3 Changed 6 years ago by szrof
- Priority changed from blocker to major
- Type changed from defect to enhancement
- Component changed from extra modules to core modules
- Milestone set to 0.1.0
Reset ticket data to original values. Damn spammers.
Changed 5 years ago by bmotion
-
attachment
complex-shocked.diff
added
Removing bMotionCache from complex shocked plugin
Changed 5 years ago by bmotion
-
attachment
complex-smiley.diff
added
Removing bMotionCache from complex smiley, hopefully using the history check correctly
Changed 5 years ago by bmotion
-
attachment
fr.complex-pinch.diff
added
Making the french complex pinch work like the english one
Changed 5 years ago by bmotion
-
attachment
last-simple.diff
added
More converting from bMotionCache. This time adjusting last_simple
Changed 5 years ago by bmotion
-
attachment
bmotion.tcl
added
OH NOES! turns out that I really broken bMotion, didn't notice until I restarted it. This is an alteration to make it work!
comment:5 Changed 4 years ago by bmotion
If it matters any, I have been successfully using this for sometime on my bot.
comment:6 Changed 4 years ago by znx
Added these patches in [884] still more to do though:
$ grep -ri last * | grep Cache | grep -v svn
modules/events.tcl: set bMotionCache($channel,last) 0
modules/events.tcl: global bMotionLastEvent bMotionSettings botnicks bMotionCache bMotionInfo
modules/events.tcl: set bMotionCache($channel,last) 0
modules/events.tcl: if {[regexp -nocase "(i'm not talking to|not) you" $text] && $bMotionCache($channel,last)} {
modules/events.tcl: set bMotionCache($channel,last) 0
modules/events.tcl: set bMotionCache($channel,last) 0
modules/events.tcl: set bMotionCache(lastPlugin) $callback
modules/system.tcl: set bMotionCache($chan,last) 0
modules/system.tcl: return $bMotionCache($channel,last)
modules/output.tcl: set bMotionCache($channel,last) 1
modules/output.tcl: set what [array get bMotionCache "lastruser$bot"]
modules/variables.tcl: set bMotionCache(lastGreeted) ""
modules/variables.tcl: set bMotionCache(lastHows) ""
modules/variables.tcl: set bMotionCache(lastDoneFor) ""
modules/variables.tcl: set bMotionCache(lastLeft) ""
plugins/en/action_complex_pinch.tcl: #set bMotionCache(lastEvil) $nick

best design page software web computer refurbished toronto cable internet deal computer networking baltimore blue keyboard microsoft mouse tooth apple computer first invented who computer game in kid bb domain eminent t flash web design software cmms maintenance software 320p acer driver prisa scanner charter cable internet free on line virus scanner camera internet wireless career in computer programming oklahoma scanner frequency code burning download dvd software flatbed scanner for mac computer information job system computer hp rental canon printer cartridge bc 02 hosting server shared free dvd decoding software dark glow in paper printer monitor is in power save mode activate using pc computer product power supply internet computer class discount pc software 6 explorer internet upgrade best domain hosting services construction payroll software design fashion online study where internet job search courtyard design house interior pny computer memory virus anti virus software computer education handheld hp ipaq foldable keyboard direct way satellite internet commercial design firm interior 7 internet mcafee security suite hot tub and patio design toshiba notebook computer child game internet play internet search engine advertising photo stitching software 19 crt lacie monitor bedroom design for girl computer help slow running computer consultant data transfer