mIRC Homepage
Posted By: Bullseye +q - 04/04/07 07:04 PM
when joining my room chanserv sets the mode +q.
but using this code doesn't work:
Code:
iif($nick($chan,$me,q),add): bla bla bla

anyone any idea how to make it work?
Code:
iif($me isowner $chan,add): bla bla bla

this i also tryed but that doesn't work on that server

Greetings
Posted By: DJ_Sol Re: +q - 04/04/07 07:21 PM
try $iif
Posted By: Bullseye Re: +q - 04/04/07 07:37 PM
sorry forgot to copy that it says $iif.
My mistake frown
Posted By: jaytea Re: +q - 04/04/07 08:32 PM
on certain networks q is sent as a list mode which means mirc wont keep track of it as it would normally when its a nickmode and has an assosciated prefix. here's a small snippet for these cases (which supports the nickmode case too):

Code:
; $isowner(#chan,nick)

alias isowner {
  if ($isid) return $iif($nick($1,$2,q) || $istok($ial($2).mark,$1,32),$true,$false)
  .ialmark $2 $($+($,$3,tok($ial($2).mark,$1,32)),2)
}

on *:join:#:{ isowner # $nick rem }

on *:owner:#:{ isowner # $opnick add }

on *:deowner:#:{ isowner # $opnick rem }

raw 386:*:{ isowner $2- add }


the raw event triggers when you're sent the owner list (you use /mode #chan +q to request it), which you could do in a join event when ($nick == $me) && (q isincs $gettok($chanmodes,1,44)), i didnt feel like adding it.. up to you whether you want to send the extra command on join :P if you don't then, much like with the banlist, you cant be 100% certain who's on it after having just joined

so now you can use $iif($isowner(#,$me),add) in your popup


Posted By: qwerty Re: +q - 04/04/07 08:49 PM
You never run out of clever tricks, do you? smile Very nice usage of token identifiers and $eval()!
Posted By: jaytea Re: +q - 04/04/07 09:10 PM
aww thanks :*
Posted By: Spitfire3292 Re: +q - 05/04/07 02:06 AM
So much for that challenge Timmy made :p unless that's over? :P
Posted By: HuMoR Re: +q - 05/04/07 07:58 AM
https://forums.mirc.com/ubbthreads.php?ubb=showflat&Number=173347&page=4#Post173347

laugh

Cya!.-
© mIRC Discussion Forums