egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ban via x [ antisocks.tcl ]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
silverboy
Halfop


Joined: 11 Feb 2006
Posts: 55

PostPosted: Sat Feb 11, 2006 10:45 pm    Post subject: ban via x [ antisocks.tcl ] Reply with quote

http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=15

can nyone please help me to make this tcl ban via x, wud b reallyyyyyyy thankful mwah..
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Feb 12, 2006 1:23 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
silverboy
Halfop


Joined: 11 Feb 2006
Posts: 55

PostPosted: Sun Feb 12, 2006 1:45 am    Post subject: Reply with quote

the script is too big to b posted wif the code, n the server is UNDERNET Laughing
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Feb 12, 2006 2:53 am    Post subject: Reply with quote

silverboy wrote:
the script is too big to b posted wif the code, n the server is UNDERNET Laughing

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
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Feb 12, 2006 11:03 am    Post subject: Reply with quote

Search for the lines where the kick/ban is and change it to whatever you want.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
silverboy
Halfop


Joined: 11 Feb 2006
Posts: 55

PostPosted: Sun Feb 12, 2006 9:29 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Feb 12, 2006 10:32 pm    Post subject: Reply with quote

Code:
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
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
silverboy
Halfop


Joined: 11 Feb 2006
Posts: 55

PostPosted: Mon Feb 13, 2006 12:03 am    Post subject: Reply with quote

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

well wt does it mean by this line then lol Neutral
do i hav to edit that newban too for the script to ban via x ? or js leave it lik tat
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Feb 13, 2006 2:02 am    Post subject: Reply with quote

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 Neutral
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. Very Happy

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
Back to top
View user's profile Send private message Visit poster's website
silverboy
Halfop


Joined: 11 Feb 2006
Posts: 55

PostPosted: Wed Jun 13, 2007 6:46 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Jun 13, 2007 9:51 am    Post subject: Reply with quote

Code:
.set errorInfo

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Jun 13, 2007 4:16 pm    Post subject: Reply with quote

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?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber