you can use variables if you want to, but i would use something like this:
on *:text:!submit*:*:{
if ($joke($2)) {
privmsg $chan $2 Already Appears To Be In The List Of Jokes...
return
}
joke $2 $3-
privmsg $chan $2 Added To Joke List...
}
on *:text:!joke*:*:{
if (!$joke($2)) {
privmsg $chan $2 Doesnt Appear To Be In The Joke List... !submit $2- <joke message> --> To Add A Joke
return
}
privmsg $chan $joke($2)
}
alias joke {
if ($isid) {
return $readini(jokes.ini,main,$1)
}
writeini -n jokes.ini main $1-
}
Thats a basic start for ya, just one of the many ways you can start something like that off, but remember, thats just a basic example, i can go wayyyyyyyy farther into detail, and add option after option, however, i have other things to do aswell, and dont feel like making the whole thing for you :P
so there is a good starting point.... atleast i think it is