mIRC Home    About    Download    Register    News    Help

Print Thread
#33157 30/06/03 09:47 AM
Joined: Jun 2003
Posts: 129
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jun 2003
Posts: 129
raw 324:*:echo $2 Modes: $3- | haltdef
Why would it display this twice does the server send that raw twice or what?
Modes: +tnl 50
Modes: +tnl 50

#33158 30/06/03 11:44 AM
P
pheonix
pheonix
P
why not just use $chan(#).mode ?

#33159 30/06/03 11:52 AM
Joined: May 2003
Posts: 215
L
Fjord artisan
Offline
Fjord artisan
L
Joined: May 2003
Posts: 215
I've come across this problem as well in the past, I worked around it by using $chan(#).modes and adding the same line to another raw which is triggered when joining a channel, like raw 353 (/names) for example, and halting raw 324.

#33160 30/06/03 02:26 PM
Joined: Apr 2003
Posts: 426
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Apr 2003
Posts: 426
Some modes are only able to be seen when a user is opped.

When you get opped, channel modes are generally sent again to the client.

This is most likely causing you to see it twice.

Don't worry, it isn't a bug in your script.

#33161 01/07/03 07:43 AM
Joined: Jun 2003
Posts: 129
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jun 2003
Posts: 129
Thanx alot guys smile
raw 324:*:if (!$chan($2).modes) echo $2 Modes: $3- | haltdef

Last edited by obsessed; 01/07/03 07:48 AM.
#33162 02/07/03 03:54 AM
G
Gogatee
Gogatee
G
well, for me that code doubles up.

edit: Um, i was thinking about the way previously stated about to fix it, like put it in another raw that doesn't double up.

However, how do you do the created date using that method?

Last edited by Gogatee; 02/07/03 04:00 AM.

Link Copied to Clipboard