Skip to content
This repository was archived by the owner on Apr 13, 2019. It is now read-only.
This repository was archived by the owner on Apr 13, 2019. It is now read-only.

Upon timeout (either through internet loss or server connection loss), cinch replays already-executed messages and commands. #239

@Zarthus

Description

@Zarthus

The title is a bit longwinded, so allow me to elaborate:

In the cinch timebomb plugin, the bot will re-kick users previously kicked upon disconnect.

This issue is not specific to the cinch timebomb plugin, but it is a relatively minimal example that demonstrates reproducability. In some of my custom plugins I've seen it happening as well, just on a less annoying scale.

Now lets say this plugin has kicked three or four people, and the bot disconnects because server.network.net is being restarted. Upon reconnection, the bot will proceed to re-kick all these people.

From the timebomb plugin, at one of these events:

(18:00:23) * @CinchBot (bot@bothost) Quit (*.net *.split)
(18:02:40) * CinchBot (bot@bothost) has joined #channel
(18:02:46) * ChanServ sets mode: +o CinchBot
(18:05:55) * User3 was kicked by CinchBot (*BOOM!*)
(18:06:11) * User1 was kicked by CinchBot (*BOOM!*)
(18:06:16) * User1 (User1@hostmask) has joined #channel
(18:06:19) * User1 was kicked by CinchBot (*BOOM!*)
...
(18:10:45) * User1 was kicked by CinchBot (*BOOM!*)
(18:10:50) * User1 (User1@hostmask) has joined #channel
(18:10:57) * User1 was kicked by CinchBot (*BOOM!*)
(18:11:02) * User1 (User1@hostmask) has joined #channel

This is not just limited to kicks, and I believe I've seen it happen with mode changes as well. It might be related to timers.

This issue has been around for some time, I don't know when exactly, but it seems to at least happen in 2.3.x, it just seems like nobody has been too bothered by it to report it. I've seen several cinch bots have similar behaviour, including my own.

A restart of cinch (killing the process and booting it back up again) fixes the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions