mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 03:32:35 +01:00
ircclient:remove unneeded join and leave message
This commit is contained in:
parent
801e8e0314
commit
3143d0c7b6
@ -772,12 +772,23 @@ namespace Glest {
|
||||
"In [%s::%s Line: %d]\n",
|
||||
extractFileFromDirectoryPath(__FILE__).
|
||||
c_str(), __FUNCTION__, __LINE__);
|
||||
|
||||
// code to execute when someone leaves the lobby
|
||||
if (ircClient != NULL && ircClient->isConnected() == true
|
||||
&& ircClient->getHasJoinedChannel() == true) {
|
||||
ircClient->SendIRCCmdMessage(IRC_CHANNEL,
|
||||
" has left the lobby");
|
||||
/* The discord-irc bot<https://github.com/reactiflux/discord-irc>
|
||||
* already prints this message because
|
||||
* it's sent using NOTICE or whatever from IRC directly
|
||||
*
|
||||
* The only reason it would be useful is to provide an extra alert
|
||||
* to users in the channel on IRC, if they have extra notifications
|
||||
* enabled
|
||||
*
|
||||
ircClient->SendIRCCmdMessage(IRC_CHANNEL, " has left the lobby");
|
||||
*/
|
||||
sleep(30);
|
||||
}
|
||||
|
||||
cleanup();
|
||||
|
||||
if (SystemFlags::getSystemSettingType(SystemFlags::debugSystem).
|
||||
|
@ -176,10 +176,20 @@ namespace Shared {
|
||||
|
||||
if (SystemFlags::VERBOSE_MODE_ENABLED || IRCThread::debugEnabled) printf("===> IRC: Line: %d\n", __LINE__);
|
||||
|
||||
//irc_cmd_msg (session, params[0], "ZG Bot says hello!");
|
||||
// code to execute when someone joins the lobby can be put here.
|
||||
ctx->setHasJoinedChannel(true);
|
||||
|
||||
/* The discord-irc bot<https://github.com/reactiflux/discord-irc>
|
||||
* already prints this message because
|
||||
* it's sent using NOTICE or whatever from IRC directly
|
||||
*
|
||||
* The only reason it would be useful is to provide an extra alert
|
||||
* to users in the channel on IRC, if they have extra notifications
|
||||
* enabled
|
||||
*
|
||||
const char *announceJoin = { "has joined" };
|
||||
irc_cmd_msg(session, "#zetaglest-lobby", announceJoin);
|
||||
*/
|
||||
|
||||
if (SystemFlags::VERBOSE_MODE_ENABLED || IRCThread::debugEnabled) printf("===> IRC: Line: %d\n", __LINE__);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user