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.

ban via x [ antisocks.tcl ]

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
s
silverboy
Halfop
Posts: 55
Joined: Sat Feb 11, 2006 5:44 am
Contact:

ban via x [ antisocks.tcl ]

Post by silverboy »

http://www.egghelp.org/cgi-bin/tcl_arch ... load&id=15

can nyone please help me to make this tcl ban via x, wud b reallyyyyyyy thankful mwah..
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

No one would be silly enough to download that; post the script using code tags.

And which Network?
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
s
silverboy
Halfop
Posts: 55
Joined: Sat Feb 11, 2006 5:44 am
Contact:

Post by silverboy »

the script is too big to b posted wif the code, n the server is UNDERNET :lol:
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

silverboy wrote:the script is too big to b posted wif the code, n the server is UNDERNET :lol:
Then you will have to be patient and see if any will download it and look at it.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Search for the lines where the kick/ban is and change it to whatever you want.
s
silverboy
Halfop
Posts: 55
Joined: Sat Feb 11, 2006 5:44 am
Contact:

Post by silverboy »

if {$type == "join"} {
putserv "kick [lindex $args 0] [lindex $args 1] :Open socks v$reply found on $host!"
if {$bantime != ""} { newban *!*@${host} $botnick "Open socks v$reply found on $host!" $bantime }



well i dunno evn the basc of tcl scrptn to change dis... i jz kno a lil of irc scriptn' i tried someone thr like putser :Privmsg x: ban $chan <--dunno wot comes after this lol
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

putserv "privmsg x :<whatever syntax used to ban through x here>"
[lindex $args 0] = chan
[lindex $args 1] = nick
$host = ip
$bantime = ban time in minutes
s
silverboy
Halfop
Posts: 55
Joined: Sat Feb 11, 2006 5:44 am
Contact:

Post by silverboy »

if {$bantime != ""} { newban *!*@${host} $botnick "Open socks v$reply found on $host!" $bantime }

well wt does it mean by this line then lol :|
do i hav to edit that newban too for the script to ban via x ? or js leave it lik tat
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

silverboy wrote:if {$bantime != ""} { newban *!*@${host} $botnick "Open socks v$reply found on $host!" $bantime }

well wt does it mean by this line then lol :|
do i hav to edit that newban too for the script to ban via x ? or js leave it lik tat
The above simply means that if the variable "bantime" is not empty then go ahead and set the ban with the duration as contained in $bantime. :D

One would assume the code just below that line would handle the ban if "bantime" is empty (i.e. setting a default duration for the ban).
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
s
silverboy
Halfop
Posts: 55
Joined: Sat Feb 11, 2006 5:44 am
Contact:

Post by silverboy »

I changed it to
putserv "privmsg x :ban [lindex $args 0] *!*@${host} 2400 499 "

but it didnt work and i dont see any errors?
proxyz..proxyz...i see everywher... O_o
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

.set errorInfo
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

silverboy wrote:I changed it to
putserv "privmsg x :ban [lindex $args 0] *!*@${host} 2400 499 "

but it didnt work and i dont see any errors?
You replaced what exactly?
Post Reply