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.

tcl error

Old posts that have not been replied to for several years.
Locked
d
detonated
Voice
Posts: 16
Joined: Sat Mar 13, 2004 3:10 am

tcl error

Post by detonated »

i need help with this tcl error.

[20:12] Tcl error [pub:channels]: wrong # args: should be "chanlist channel ?flags?"

Code: Select all

proc pub:channels {nick host hand chan arg} {
	if {(![auth:check $hand]) && (![isop $nick $chan])} {
	puthelp "NOTICE $nick :You aren't authorized/authenticated." 
	return 0
	}
	set chans [chanlist]
	notice $nick "Channels: $chans"
	putcmdlog "<<$nick>> !$hand! channels"
}
thanks. :)
User avatar
Rusher2K
Halfop
Posts: 88
Joined: Fri Apr 18, 2003 10:45 am
Location: Germany
Contact:

Post by Rusher2K »

You must use chanlist like this:

Code: Select all

(13:30:19) (@Rusher2K) !tcl set chans [chanlist #sicherheit &n]
(13:30:19) (S-Check) result: Rusher2K whitewolf2k biG|d3sti`off - clicks: 75493

Code: Select all

chanlist #sicherheit &n
That retuns all channel owners of #sicherheit.

Use:
chanlist <channel> [flags[&chanflags]]
Description: flags are any global flags; the '&' denotes to look for channel specific flags. Examples:

n
Global Owner

&n
Channel Owner

o&m
Global Op, Channel Master


Returns: list of nicknames currently on the bot's channel that have all of the flags specified;. If no flags are given, all of the nicknames are returned. Please note that if you're executing chanlist after a part or sign bind, the gone user will still be listed, so you can check for wasop, isop, etc.
d
detonated
Voice
Posts: 16
Joined: Sat Mar 13, 2004 3:10 am

Post by detonated »

erm OK let me explain. upon typing !channels, the bot will reply what channels that it is in. its not abt bot's owner etc. :wink:
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

set chans [chanlist]
use channels command instead

Code: Select all

set chans [channels]
Elen sila lúmenn' omentielvo
d
detonated
Voice
Posts: 16
Joined: Sat Mar 13, 2004 3:10 am

Post by detonated »

ok thanks Papillon and Rusher. its working fine now. :P
Locked