example:
OPERATOR isuser {
if ( $0 < 2 ) { echo -s Invalid isuser format | halt }
if ( $nick($2,$1,a,ohvr) ) { return $true }
return $false
}
So that someone could do something like: if ( $nick isuser $chan ) { ; what to do }
Instead of: if ( $isuser($nick,$chan) ) { ; what to do }
Would return $true if the person isn't OP/HOP/VOICE, but has some sort of weird mode so they don't match up as a regular user either. (Conference Room supports a "User" mode, so nicks show up as "-Nick")
Just a thought as it could add features without forcing them to be identifiers. I think that in the long run, if it got implemented, it would only be able to return $true/$false only as results, so as for usefulness, would be used solely for times when a $true/$false result is necessary, and not anything like a nick/#room/text/etc.
The !| (or !||):
Similar to || but with a twist.. Only is true if one codition or the other is true, but not both.
ie..
if ( 1 == 1 !|| 2 == 2 ) { }
Would ONLY be true if 1 == 1 -or- 2 == 2 -but- not if both are true. (Which in this example, both are true).
Perhaps something like this already exists, I dunno, but it would seem to be easier than:
if ( ( 1 == 1 && 2 != 2 ) || ( 1 != 1 && 2 == 2 ) ) { }
I know other languages support the idea I am talking about, not sure if I'm using the right format/symbols, but I think it's called something like an excusive OR or NOR or something. (blah!)
Just thought it would add more functionality.