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.

best way to use irc cap ?

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
CrazyCat
Revered One
Posts: 1236
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

best way to use irc cap ?

Post by CrazyCat »

Hi there,

I want to use the away-notify in a script, so I use:

Code: Select all

if {[string match -nocase *away-notify* [cap ls]} {
	cap req away-notify
	bind ircaway - * wlcaway
}
Do you think there is a better way to do that ? And is it usefull to check if it is already requested ?
k
kisser
Voice
Posts: 7
Joined: Sat Feb 20, 2010 3:24 am

Post by kisser »

well you can use
bind raw - 301 procname
remember you have to make the bot whois the user to be able to see it
•°o.O Wµ¥ ƒîgµT tø LìvÈ µøm¥ îƒ wÊ Øñ£ÿ £îvìñ tÕ ÐïÊ O.o°•
User avatar
CrazyCat
Revered One
Posts: 1236
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

This is not the question I asked.
I just want to know if there is a better way to check if away-notify is enable than the one I use.
Post Reply