From ca87684d7f5e65ca9ee56f68a6cfc473a4ec6a45 Mon Sep 17 00:00:00 2001 From: fduchene Date: Thu, 10 Dec 2015 17:54:33 +0100 Subject: [PATCH] Allow shunned users to use the PING command When a user is shunned (eg /tempshun user ), the command PING cannot be used (PONG can so answer server PING). Some clients like irssi are using PING command to compute the server lag, so when an irssi user is shunned, the lag displayed in irssi start ton increase, giving a way ton know if he is shunned. After 320 sec of lag, irssi will reconnect, bypassing automatically the tempshun. --- src/modules/m_pingpong.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_pingpong.c b/src/modules/m_pingpong.c index 0e150ce3d..bf018f37e 100644 --- a/src/modules/m_pingpong.c +++ b/src/modules/m_pingpong.c @@ -59,7 +59,7 @@ ModuleHeader MOD_HEADER(m_pingpong) /* This is called on module init, before Server Ready */ MOD_INIT(m_pingpong) { - CommandAdd(modinfo->handle, MSG_PING, m_ping, MAXPARA, M_USER|M_SERVER); + CommandAdd(modinfo->handle, MSG_PING, m_ping, MAXPARA, M_USER|M_SERVER|M_SHUN); CommandAdd(modinfo->handle, MSG_PONG, m_pong, MAXPARA, M_UNREGISTERED|M_USER|M_SERVER|M_SHUN|M_VIRUS); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS;