ZNC - Suppress JOIN hammering errors.

By raccoon on Jan 10, 2015

This script addresses a simple bug within ZNC where it sends the client hundreds of unnecessary JOIN failure messages when attempting to regain entry into the channel on a hard-coded 30 second delay. There is no option in ZNC to suppress these messages to your client(s), so a client side script becomes necessary to filter them out.

[00:01] * Unable to join channel (channel is full)
[00:01] * Unable to join channel (channel is full)
[00:02] * Unable to join channel (channel is full)
[00:02] * Unable to join channel (channel is full)
[00:03] * Unable to join channel (channel is full)
[00:03] * Unable to join channel (channel is full)
[00:04] * Unable to join channel (channel is full)
[00:04] * Unable to join channel (channel is full)
[00:05] * Unable to join channel (channel is full)
[00:05] * Unable to join channel (channel is full)
[00:06] * Unable to join channel (channel is full)
[00:06] * Unable to join channel (channel is full)
[00:07] * Unable to join channel (channel is full)
[00:07] * Unable to join channel (channel is full)
[00:08] * Unable to join channel (channel is full)
[00:08] * Unable to join channel (channel is full) ...

Here is such a script for mIRC.
Only the first error is seen in your channel / status window, and repeated errors are suppressed. ```mirc ; Hide repetitious errors when client is hammering channel to rejoin. RAW 471:*: { _znc_hide_hammering $2 $numeric } ; +l limit RAW 473:*: { _znc_hide_hammering $2 $numeric } ; +i invite RAW 474:*: { _znc_hide_hammering $2 $numeric } ; +b ban RAW 475:*: { _znc_hide_hammering $2 $numeric } ; +k key RAW 477:*: { _znc_hide_hammering $2 $numeric } ; +r register RAW 480:*: { _znc_hide_hammering $2 $numeric } ; +S ssl RAW 437:*: { _znc_hide_hammering $2 $numeric } ; temp unavailable RAW 366:*: { unset $+(%,_znc_hide_hammering.,$cid,$2,.*) } ; End of /NAMES ALIAS -l _znc_hide_hammering { ; by Raccoon 2015 if ($($+(%,_znc_hide_hammering.,$cid,$$1,.,$$2),2)) { haltdef } inc -eu130 $+(%,_znc_hide_hammering.,$cid,$$1,.,$$2) 1 } ``` Enjoy. (keywords): IRC Internet Relay Chat ZNC BNC bounce proxy mIRC script bug fix efnet freenode #znc

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.