mIRC Homepage

How to keep the notice from being sent to status?

Posted By: Tomao

How to keep the notice from being sent to status? - 21/05/11 01:01 AM

I currently have this line of code for a custom notice event:
Code:
$iif(#,#,$iif($query($nick),$nick,$target))
This works if the query window whom you send a query to is open, but when it's not open, the notice gets sent to the status instead of the active channel. I tried everything (perhaps I've missed something along the way) I can think of but to no avail. Any assistance is obliged.
Posted By: Riamus2

Re: How to keep the notice from being sent to status? - 21/05/11 01:47 AM

You can change where notices appear from mIRC's options. Alt-O > IRC > Show in Active. By the sounds of it, that's all you need.
Posted By: Tomao

Re: How to keep the notice from being sent to status? - 21/05/11 05:24 AM

Thanks, Riamus2. But that didn't help. I've managed to find a solution to it and it seems to be working now.
Posted By: RoCk

Re: How to keep the notice from being sent to status? - 21/05/11 06:23 AM

Share the solution?
Posted By: hixxy

Re: How to keep the notice from being sent to status? - 21/05/11 01:46 PM

Code:
if ($chan) { ; echo in channel... }
elseif ($query($nick)) { ; echo in query window... }
else {
  var %i = 1
  while ($comchan($nick,%i)) {
    ; echo in $comchan($nick,%i)
    inc %i
  }
}
Posted By: DJ_Sol

Re: How to keep the notice from being sent to status? - 21/05/11 03:18 PM

So what you are saying is when it comes time to point to a channel, because you know its not a query, $chan is $null?

Have you echo'd the event to find out where the channel is stored? Maybe try $rawmsg,
Posted By: hixxy

Re: How to keep the notice from being sent to status? - 21/05/11 04:24 PM

What I suggested is fine.

The scenario he was running into is that he was receiving a private (not channel) notice from a nickname that he didn't have a query window open with.

In this case, you can use $comchan() in a loop to echo the notice in every channel you share with the nickname, you could also echo it to the active/status window if you prefer.
Posted By: Tomao

Re: How to keep the notice from being sent to status? - 21/05/11 05:40 PM

Thanks very much every one for your valuable input. What I have done is this:
Code:
$iif(#,#,$iif($query($nick),$nick,$iif($active ischan,$v1,$target)))
It's working this way.
© 2020 mIRC Discussion Forums