mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2008
Posts: 2
S
Splunge Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Jan 2008
Posts: 2
At line 139, it gets buggy. Instead of sending it to a channel, it gets sent to my main server window.

[snipped]

Joined: Feb 2006
Posts: 6
D
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
D
Joined: Feb 2006
Posts: 6
I don't know!

Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
How about you tell us why 'it gets buggy' at line 139. Possibly show us some of the error messages?

Also, using $iif() in that fasion is just criminal.. CRIMINAL.. wink

Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Originally Posted By: Splunge
At line 139, it gets buggy.


Since you didn't show us which line is line 139, I was too lazy to count to line 139. And I'm at a school computer so I won't be pasting it into a new remote sheet.

Originally Posted By: Splunge
Instead of sending it to a channel, it gets sent to my main server window.


Well, sending it to the status window would be /echo -s. If this is popups for channel, then use /echo -a.

-Neal.

Joined: Jan 2008
Posts: 2
S
Splunge Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Jan 2008
Posts: 2
Per Neal's reply,

Originally Posted By: LostShadow
Originally Posted By: Splunge
At line 139, it gets buggy.


Since you didn't show us which line is line 139, I was too lazy to count to line 139. And I'm at a school computer so I won't be pasting it into a new remote sheet.

Originally Posted By: Splunge
Instead of sending it to a channel, it gets sent to my main server window.


Well, sending it to the status window would be /echo -s. If this is popups for channel, then use /echo -a.

-Neal.


Well, the popup is not in the channel, but in the main bar as it uses a DLL to make sure it stays on the top bar.
Actually, line 139 is this
Php Code:
alias -l lag.msg { $iif($active ischan,msg # Currently my lag is: $lag.isms($hget(txlag,curlag))) } 


What do you suggest as a rewrite?

Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Well then.

Quote:
Instead of sending it to a channel, it gets sent to my main server window.


I don't see how msg # will send it to the status window. This is, of course, assuming by server window you meant status window. Is it something else?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Your problem is most likely the comma in the $true section of the $iif. As with most commands in mIRC, you cannot use the character that's used for separating arguments within an argument. Because the comma separates the items in the $iif, it cannot be used in any part of the $iif. Either change the $iif to an IF, or try changing the comma to $chr(44) and see if that works, or else put the $hget stuff into a variable and then put the variable in the $iif.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard