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.
Old posts that have not been replied to for several years.
p
pirahna
Post
by pirahna » Fri Feb 07, 2003 3:36 pm
Could anyone make a tcl that will allow me to use
.addleaf <nick> <ip>:<port>
and
.addhub <nick> <ip>:<port>
All the right flags should then be set automatic..
MORA
Voice
Posts: 10 Joined: Mon Apr 15, 2002 8:00 pm
Post
by MORA » Fri Feb 07, 2003 4:43 pm
bind dcc n|- addhub dcc:addbot
bind dcc n|- addleaf dcc:addbot
bind dcc n|- addalthub dcc:addbot
proc dcc:addbot {h i a} {
global lastbind
if {[lindex $a 3] == ""} { putidx $i "Usage: .$lastbind handle ip port nick!ident@host" ; return 0 }
putcmdlog "#$h# $lastbind [split $a]"
switch -exact -- $lastbind {
"addhub" { set flags "+ghp" }
"addleaf" { set flags "+gs" }
"addalthub" { set flags "+gap" }
}
addbot [lindex $a 0] [lindex $a 1]:[lindex $a 2]/[lindex $a 2]
chattr [lindex $a 0] +fo
botattr [lindex $a 0] $flags
addhost [lindex $a 0] [lindex $a 3]
}
MORA @ EFNET #egghelp =)
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sat Feb 08, 2003 2:35 am
actualy is 'ip:port'..
Once the game is over, the king and the pawn go back in the same box.
MORA
Voice
Posts: 10 Joined: Mon Apr 15, 2002 8:00 pm
Post
by MORA » Sat Feb 08, 2003 3:01 pm
actually IS NOT !
addbot [lindex $a 0] [lindex $a 1]:[lindex $a 2]/[lindex $a 2]
lindex 0 = botnick
1= ip
2=port
yes, you should use [join [lindex to fix char probs
MORA @ EFNET #egghelp =)
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sat Feb 08, 2003 3:58 pm
Actualy I was talking about the "Usage: .$lastbind handle ip port nick!ident@host" msg and seems that I've forgot to mention that :]
Once the game is over, the king and the pawn go back in the same box.
MORA
Voice
Posts: 10 Joined: Mon Apr 15, 2002 8:00 pm
Post
by MORA » Sat Feb 08, 2003 6:39 pm
Hmm?
me too.
it takes 4 arguments.
handle ip port irchost
then first it adds the user (argument 0) with the ip (argument 1) and sets the port for both user and bots to port (argument 2)
then it chattr the bot (argument 0) +fo
then it botattr the bot (argument 0) to whatever the bottype may be needing.
lastly it adds the irchost (argument 3) to the bot (argument 0)
Why would it be ip:port ?
MORA @ EFNET #egghelp =)
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sun Feb 09, 2003 3:00 am
The ip:port thing is for the hub..
Once the game is over, the king and the pawn go back in the same box.
spock
Master
Posts: 319 Joined: Thu Dec 12, 2002 8:40 pm
Post
by spock » Sun Feb 09, 2003 2:49 pm
no it can be for leafs aswell... try .link leaf from your hub. it uses the information from the address field (.chaddr ip:port)
photon?