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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
-
dq
- Voice
- Posts: 32
- Joined: Mon Apr 03, 2006 12:28 am
Post
by dq »
Howdy,
Anyone buck enough to traslate this into TCL?
It basically just spits out to the channel what channels the bot is currently in via .commands
Code: Select all
on *:TEXT:.channels:#:{
set %i 1
set %a $null
while %i <= $chan(0) {
(1%a = %a $+ $chr(32) $+ $chan(%i)
inc %i }
msg $chan Channels Idling $calc( $chan(0)) channels ; %a ¬
}
GL and thanks in advance.
-
DragnLord
- Owner
- Posts: 711
- Joined: Sat Jan 24, 2004 4:58 pm
- Location: C'ville, Virginia, USA
Post
by DragnLord »
This would fit beter in requests. This is not tcl that you asking for help with.
-
whittinghamj
- Op
- Posts: 103
- Joined: Sun May 21, 2006 4:50 pm
Post
by whittinghamj »
This should work
Code: Select all
bind pub - !channels pub:channels
proc pub:channels {nick host hand chan arg} {
set chans [chanlist]
notice $nick "Channels: $chans"
putcmdlog "<<$nick>> !$hand! channels"
}
-
dq
- Voice
- Posts: 32
- Joined: Mon Apr 03, 2006 12:28 am
Post
by dq »
Thanks for the replys guys,
whittinghamj, I get the error
Code: Select all
[01:43] Tcl error [pub:channels]: wrong # args: should be "chanlist channel ?flags?"
Am I doing something wrong?
-
metroid
- Owner
- Posts: 771
- Joined: Wed Jun 16, 2004 2:46 am
Post
by metroid »
the command is
not "chanlist", i have no idea how you could even confuse the two

-
whittinghamj
- Op
- Posts: 103
- Joined: Sun May 21, 2006 4:50 pm
Post
by whittinghamj »
sorry - i been up for the past three days without sleep - its been stressful at work - server hacks
thanks for correcting me.
-
dq
- Voice
- Posts: 32
- Joined: Mon Apr 03, 2006 12:28 am
Post
by dq »
Thanks guys,
And sorry to hear about that whittinghamj :<