Jump to content
  • 0

IRC Tokens


NXwolf

Question

I'm trying to understand how tokens work in IRC.  I want to create a couple scripts and what I need to know is how to create a global variable that will store tokens in it and then other scripts can modify that variable until it is unset.  How do I go about creating such?

 

For example:

On event A

create global variable GV    [    should be a set command to set a variable    ]

 

On Event B

add token "1" to GV var.     [    $addtok(%GV,1,32)    ]

 

On Event C

add token "2" to GV var      [    $addtok(%GV,2,32)    ]

 

On Event D

Display GV (I want it to output "1 2".  The space being the 32 ascii value in the addtok point)     [    unsure how to display a full list    ]

 

On Event E

delete global variable GV      [     should just be an unset variable command      ]

 

I can get the token values to output the tokens, but they only output the token of the given event, not all events.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.