X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=zippy.c;h=2698ac5f6f2a9503184bf673b29b7ef2096ea784;hb=ca99bd4de57d0b079024cbdf5435de1ae61d5fd9;hp=562609284c1f98090bd14dfddbbe2a4991d1e5a8;hpb=21b2748b7e01ca15af0c2dce7102df401dc2666f;p=xboard.git diff --git a/zippy.c b/zippy.c index 5626092..2698ac5 100644 --- a/zippy.c +++ b/zippy.c @@ -412,10 +412,6 @@ int ZippyControl(buf, i) char *player, *p; char reply[MSG_SIZ]; -#if TRIVIA -#include "trivia.c" -#endif - /* Possibly reject Crafty as opponent */ if (appData.zippyPlay && appData.zippyNoplayCrafty && forwardMostMove < 4 && looking_at(buf, i, "* kibitzes: Hello from Crafty")) @@ -680,18 +676,11 @@ int ZippyConverse(buf, i) channel++; } channel[strlen(channel)-1] = NULLCHAR; -#if 0 - /* Always tell to the channel (probability 90%) */ - if (strcmp(player, ics_handle) != 0 && - ((unsigned) random() % 10) < 9) { - Speak("tell", channel); - } -#else + /* Tell to the channel only if someone mentions our name */ if (ZippyCalled(star_match[2])) { Speak("tell", channel); } -#endif ColorizeEx( atoi(channel) == 1 ? ColorChannel1 : ColorChannel, FALSE ); }