Ticket #156 (new defect)

Opened 8 months ago

Setting away due to channel being idle results in immediate return

Reported by: szrof Owned by: james
Priority: minor Milestone: 0.2.0
Component: core modules Version: 0.1.0
Keywords: away randomStuff idle Cc:

Description

After updating to the most recent SVN version (revision 898), the bot once again tries to set itself away when idle. However, when this happened tonight, it immediately returned:

01:43  * Elyvilon is away: divx
01:43  * Elyvilon is back

The corresponding log snippet I have, sadly just with +d, not +d12345 is:

[01:43] (d)bMotion:  randomStuff next (192 minutes)
[01:43] bMotion: All channels are idle, going away
[01:43] (d)bMotion: abstract randomAways has been unloaded, reloading...
[01:43] (d)bMotion:  Set myself away: divx
[01:43] (d)bMotion:  Going silent
[01:43] (d)bMotion: base abstract for randomness in #channel is randomStuff
[01:43] (d)bMotion:  randomStuff said () silent (#channel)
[01:43] interbot: Resyncing with botnet for bMotion bots

I suspect the code might be relying on the fact that saying something will not make the bot return (i.e. it will get swallowed silently, as if the bot were asleep), but the "old" away code (as opposed to sleepytime) makes the bot return.

Note: See TracTickets for help on using tickets.