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.
TurboChicken
Halfop
Posts: 61 Joined: Wed Sep 29, 2004 3:18 pm
Post
by TurboChicken » Sat Dec 04, 2004 9:38 pm
y will this line not work???
Code: Select all
if {[matchattr $nick O|O #test]} {putserv "INVITE $nick #test" }
i'm not getting any errors
it's supposed to check whether the nick has a global O flag and then invite them to #test if they do??
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Sat Dec 04, 2004 10:17 pm
you mean +o, not +O, right? +o is an op, +O is user-defined flag
TurboChicken
Halfop
Posts: 61 Joined: Wed Sep 29, 2004 3:18 pm
Post
by TurboChicken » Sat Dec 04, 2004 10:27 pm
no i mean +O definately... it's a flag i using to identify owners of something so they can be invited to an owners channel.
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Sat Dec 04, 2004 10:32 pm
then you probably need to convert $nick to $handle using [nick2hand], as required by [matchattr]
TurboChicken
Halfop
Posts: 61 Joined: Wed Sep 29, 2004 3:18 pm
Post
by TurboChicken » Sat Dec 04, 2004 10:40 pm
what's the syntax.... coz i tried changing the line to
Code: Select all
if {[matchattr $nick O|O #stumpy-owners]} {puthelp "PRIVMSG $nick :this works" }
and that worked fine
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Sat Dec 04, 2004 10:49 pm
this will work as long as $nick happen to have the same handle and the bot recognizes it (by hostmask) - which is not necessarily always the case
and since you are writing scripts, I'd assume you have at least seen tcl-commands.doc - refer to it for [nick2hand] syntax & purpose
TurboChicken
Halfop
Posts: 61 Joined: Wed Sep 29, 2004 3:18 pm
Post
by TurboChicken » Sat Dec 04, 2004 10:54 pm
perhaps i should rephrase this question then as i already know what you were saying about nick and handle having to be identical.
y will this not work
????
TurboChicken
Halfop
Posts: 61 Joined: Wed Sep 29, 2004 3:18 pm
Post
by TurboChicken » Sat Dec 04, 2004 11:21 pm
this is something that i have for another one and this one works fine. this one is transferred across a botnet and $a is the nick. and then there is a variable set to make the inviteChan thing work
Code: Select all
proc stumpMsgInvite {b k a} {putserv "INVITE $a $::inviteChan"}
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Sat Dec 04, 2004 11:28 pm
set console +r and monitor server replies, might give you some hints
TurboChicken
Halfop
Posts: 61 Joined: Wed Sep 29, 2004 3:18 pm
Post
by TurboChicken » Sat Dec 04, 2004 11:57 pm
you soooooooooooooooooo rule man...
i had the channel name slightly wrong!!!!!!!!!!
DOH!!!!!
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Sat Dec 04, 2004 11:59 pm