$isalias()
- Posted by Kat <gertie at PELL.NET> Dec 14, 2001
- 486 views
Hi all, Mirc has a $isalias() function, to see if a function exists. If i am building a mirc command, and verifying the syntax of the command, i can use the $isalias() to make sure the command exists, like the following (not 100% mirc compatable, and i am making presumptions not in the actual code): text = give me a coke replace(text,give,describe #,1) replace(text,me,nick,$null) replace(text,coke,$getcoke,$null) if ( $isalias($gettok(text,1,32)) == $true ) { // $+ text } -- this will execute text *and* all the function calls inside text else { --do some more processing } Ok, how would i do this $isalias() in Eu? If i routine_id everything, i have a list of the routine tags to call once the right one is picked out, but the way i see it, the only way i can build a routine name list is to have a previous include file read this include file and append a line containing the function names in a predeclared sequence. Or use one of the interpreters written in Eu, like Udse or Py/Ox or Topaz. Correct? Kat