mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-07 09:43:12 +02:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user