Well i can use both by using this code right?

Code:
if ($nick($chan,$nick,q)) || ($nick($chan,$nick,~)) {  }