snow
Junior Member
Posts: 16
Registered: 17-1-2010
Member Is Offline
|
|
*** Invite flood from X (cservice@undernet.org) Further invites won't be shown ***
Hi there,
If i have invite channels active on X i got this:
*** Invite flood from X (cservice@undernet.org) Further invites won't be shown ***
How can i prevent this?
should be this lines on last.mrc?
on &^*:INVITE:#:{
hinc -u30 pnp.flood. $+ $cid recd.inv
if (!$_known($nick,$fulladdress)) hinc -u30 pnp.flood. $+ $cid recd.inv. $+ $site
; long channels- flood counts more
if ($len($chan) > 30) hinc -u30 pnp.flood. $+ $cid recd.inv. $+ $site
if (($hget(pnp.flood. $+ $cid,recd.inv. $+ $site) > 3) || ($hget(pnp.flood. $+ $cid,recd.inv) > 5)) {
.ignore -iu120 **!**@**
_alert Flood Invite flood from $:b($nick) $chr(40) $+ $address $+ $chr(41) Further invites won't be shown
}
[Edited on 5-12-2019 at 20:03 by snow]
|
|
kap
PnP Developer
Posts: 54
Registered: 6-8-2015
Member Is Offline
|
|
Hi
I think the best way to deal with this would be to add X to your userlist with level 50 (safe from protections)
Do you know how to do this?
Can do this via the graphical user interface, like the below image (example from Q bot):
Or via a command:
Code: |
/user X@channels.undernet.org * 50
|
Does this solve your issue?
regards,
kap
|
|
snow
Junior Member
Posts: 16
Registered: 17-1-2010
Member Is Offline
|
|
I've already tried this option before but doesn't work.. anyway, I've changed -u30 to -u300
if (($hget(pnp.flood. $+ $cid,recd.inv. $+ $site) > 3) || ($hget(pnp.flood. $+ $cid,recd.inv) > 5)) {
> 3 to 30
> 5 to 50
(i think these are seconds)
and also this line
if (($hget(pnp.flood. $+ $cid,recd.inv. $+ $site) > 2) || ($hget(pnp.flood. $+ $cid,recd.inv) > 3)) halt
> 2 to 20
> 3 to >21
(and these are lines to show and where to stop showing)
and works... now i am able to see at least 11 lines with invites from X
[Edited on 5-12-2019 at 20:35 by snow]
|
|
kap
PnP Developer
Posts: 54
Registered: 6-8-2015
Member Is Offline
|
|
I don't recommend changing PnP's flood code. Rather we should be looking at creating an override for X so that you'll keep receiving all invites from
X and everything else is still blocked/you are flood protected...
I'll see if I can test a good setup for undernet...to be continued!
|
|
snow
Junior Member
Posts: 16
Registered: 17-1-2010
Member Is Offline
|
|
I understand that, temporary i'll try using with modified code by myself if there is no problem
please let me know where there is any update regarding this
many thanks kap
|
|
kap
PnP Developer
Posts: 54
Registered: 6-8-2015
Member Is Offline
|
|
I can't test it at the moment. I don't have a registered X username nor will the undernet website allow me to register one. However one thing that I
might have gotten wrong is the command to add X to your safe from protections list...
Obviously, restore the flood code and then try the following:
Code: |
/user X!cservice@undernet.org * 50
|
I'm positive that this should provide the override needed in PnP without having to alter the flood code... :/ (or something else might be going wrong
here...)
Feel free to pop in on undernet in #peace&protection and ping me. Me and WildCraze and a few bots are idling there...
[Edited on 8-12-2019 at 18:13 by kap]
|
|
snow
Junior Member
Posts: 16
Registered: 17-1-2010
Member Is Offline
|
|
many thanks, I will try it. I'll be back with an update
|
|