This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Another Zline Related Help

Old posts that have not been replied to for several years.
Locked
Z
ZaKiR
Voice
Posts: 35
Joined: Wed Jun 16, 2004 10:05 pm

Another Zline Related Help

Post by ZaKiR »

I wanna zline everyone (Flooders) when they start connecting to server in a certain time (When they flood )

When someone connects to server bot gets server notice like ...

Hub.CaFeBanGLa.CoM - *** Notice -- Client connecting on port 6667: cL0sEd (~ZaKiR@202.174.137.108) [clients]

So when bot will get this msg it will start zlining like /zline @202.174.137.108 3d :Flooder <-- here 3d stands for 3 days

now the question is when the bot will start doing this... it will start doing this when i type !zline-on in any channel where the bot is.. & it will stop doing this when i will type !zline-off... if someone else type !zline-on or !zline-off bot will not go for it.. only when i (owner) type this bot will work for it
Z
ZaKiR
Voice
Posts: 35
Joined: Wed Jun 16, 2004 10:05 pm

Addition

Post by ZaKiR »

I wanna also add something in it.. that bot won`t zline some exceptional ips suppose mine 203.189.243.103 & some other...
Z
ZaKiR
Voice
Posts: 35
Joined: Wed Jun 16, 2004 10:05 pm

Post by ZaKiR »

Code: Select all

bind raw - NOTICE raw:notice 
proc raw:notice {from word text} { 
set notice [lrange [split $text] 0 end] 
if {[string match -nocase *connecting* $notice]} { 
set zline "@[string trimright [lindex [split [lindex $text end-2] @] 1] )]" 
putserv "Zline $zline 2d :flooder" 
} 
}
This code will zline everyone who connects to my server... but i want some additional things... like when i (owner of the bot) will type !zline-on in any channel where this bot is present this code will be activated & when !zline-off this code will be deactivated...

& i want to add some exceptional ips in this code which will never be zlined such as my ip 202.174.137.108
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

You don't need to post in 2 topics same thing :P And if no-one reply, wait more :mrgreen:
Locked