]> git.tuebingen.mpg.de Git - paraslash.git/commit
mood.c: Don't try twice to activate an invalid mood.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 9 Jul 2017 21:31:43 +0000 (23:31 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 12 Aug 2017 18:18:13 +0000 (20:18 +0200)
commit6c6065477926396a7e70f000a1cbe222ecd65be4
tree49e999e5644eb9d6a93484deaa0f40dddd523fdd
parentb0be59e69290248c621510f1e6bc1406ee0ed823
mood.c: Don't try twice to activate an invalid mood.

(Re-)loading a mood by executing the "select" server command fails
if the mood definition is invalid. In this case we first try to
switch back to the old mood, and if this also fails, fall back to
the dummy mood.

If the mood which is currently active has been replaced by an invalid
mood, switching back to the old mood is pointless because this will
try to load the same invalid mood again.

This commit modifies the select callback to load the old mood only
if it is different from the new mood.
afs.c