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.

Varibles ((SOLVED))

Help for those learning Tcl or writing their own scripts.
Post Reply
B
Branden
Halfop
Posts: 61
Joined: Sat Aug 04, 2007 8:36 pm

Varibles ((SOLVED))

Post by Branden »

Hi there,


I'm looking to make a script that will be a command exacted in a chat/channel.


I'm stuck on the part that when I say: "^Hop <user>"

How do I define user?


Here is what I've got so far.

Code: Select all


bind pub l ^HalfOp hop

proc hop {nick uhost hand chan text} {
  putserv "MODE $chan +h <????>"
  return 1
}




Please help,
Thanks,
Branden
Last edited by Branden on Sun Aug 05, 2007 11:40 am, edited 1 time in total.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

That would be the var $nick
B
Branden
Halfop
Posts: 61
Joined: Sat Aug 04, 2007 8:36 pm

Post by Branden »

I do not want the bot to do the mode on me. Instead I want it to do it on the nick I say.
t
tsukeh
Voice
Posts: 31
Joined: Thu Jan 20, 2005 6:22 am

Post by tsukeh »

That would be the var $text
B
Branden
Halfop
Posts: 61
Joined: Sat Aug 04, 2007 8:36 pm

Post by Branden »

Thank you very much!
Post Reply