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.

Need linking tcl...

Old posts that have not been replied to for several years.
Locked
p
pirahna

Need linking tcl...

Post by pirahna »

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..
M
MORA
Voice
Posts: 10
Joined: Mon Apr 15, 2002 8:00 pm

Post by MORA »

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 =)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

actualy is 'ip:port'..
Once the game is over, the king and the pawn go back in the same box.
M
MORA
Voice
Posts: 10
Joined: Mon Apr 15, 2002 8:00 pm

Post by MORA »

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 =)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
M
MORA
Voice
Posts: 10
Joined: Mon Apr 15, 2002 8:00 pm

Post by MORA »

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 =)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

The ip:port thing is for the hub..
Once the game is over, the king and the pawn go back in the same box.
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

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?
Locked