Project

General

Profile

Actions

Errata 20170727

Topic: incorrect successive word selection in hangman
Category: Plugins
Corrected: 2.1.3 (or revision r456)
Affected versions: 2.1.2
Task: #644

Background

The plugin hangman is a hangman game for IRC.

Problem

To avoid showing the same word after running a few games, a list is created and should be reused. But the actual code recreates a new list after each game, making possible to have the same word over and over.

Solution

Upgrade to a newer version if applicable or apply one of the following fixes:

Using Mercurial

If you don't have a local copy:

hg clone -u release-x.y http://hg.malikania.fr/irccd

If you already have a local copy:

cd /path/to/irccd
hg pull
hg up release-2.1

And install new version of irccd.

Using patch

Download the following patch:

Apply it:

cd /path/to/irccd/
patch -p1 < /path/to/20170727.patch

Updated by David Demelier over 5 years ago · 2 revisions