Your !ascii event is a little messy. There's some /inc and if conditionals that just don't need to be there. All you need to do is msg your channel the result of $asc($2). You have it right in !char, but you're missing an ending } in that event, so you might want to fix it. A simpler way to do this (or more complicated, depending who you ask) would be:

Code:
on $*:TEXT:/^!ascii\s*\S$/iS:#:msg # ASCII of $2 is $asc($2)
on $*:TEXT:/^!char\s*\d+$/iS:#:msg # CHR of $2 is $chr($2)


You can ignore the regular expression in the matchtext if it's too confusing for you, that's just to avoid the unnecessary error checking. If you really want the error checking to /msg the user if they provide invalid input, you should handle it the way you are already doing it.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"