mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 4,150
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
/halt or /haltdef doesn't stop the default text from being displayed inside the 'on ^ rawmode' event.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
7.22 is the latest? and working here with haltdef and halt.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jul 2006
Posts: 4,150
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
ok, Have not seen that beta.. smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Mar 2012
Posts: 38
Ameglian cow
Offline
Ameglian cow
Joined: Mar 2012
Posts: 38
I can confirm this happens as well, below are a few tests i ran;

mIRC 7.23 beta, Win7 32bit

Using versions <= 7.22, you could just use the on RAWMODE event with a haltdef to display a custom echo for modes,
and this would cover all the modes with out having to setup a haltdef on every mode event,
eg: on VOICE, on HALFOP, on OP, on OWNER, on BAN, etc..

In the 7.23 beta version is seems you have to halt/haltdef every mode event or you will get a double echo when using the on RAWMODE event.
below is a very basic script i used to test this;

Code:
 on ^*:RAWMODE:*: {
  echo $color(mode) -pt $chan RAWMODE: -> $nick -> $1 $2-
  haltdef
}


As i said, in previous version this was all that was needed for a custom echo line, now you have to add the following;

Code:
on ^*:mode:*:haltdef
on ^*:op:*:haltdef
on ^*:owner:*:haltdef
on ^*:voice:*:haltdef
on ^*:deop:*:haltdef
on ^*:deowner:*:haltdef
on ^*:devoice:*:haltdef

As this being the case, it does not account for the +/-a mode (&) that some servers have, most noteably, UnrealIRCD.
Documents on this can be found here; http://www.unrealircd.com/files/docs/unreal32docs.html#userchannelmodes
To quote the doc: "a <nick> - Makes the user a channel admin"

Below is a debug and channel echo output from 7.22 and 7.23 beta;

;---------------------------------
;-- mIRC 7.22
Code:
-> irc.someirc.tdl MODE #Lobby +o nosceteipsum
<- :Smeagol!Test@192.168.0.4 MODE #Lobby +o nosceteipsum
-> irc.someirc.tdl MODE #Lobby -o nosceteipsum
<- :Smeagol!Test@192.168.0.4 MODE #Lobby -o nosceteipsum
-> irc.someirc.tdl MODE #Lobby +a nosceteipsum
<- :Smeagol!Test@192.168.0.4 MODE #Lobby +a nosceteipsum
-> irc.someirc.tdl MODE #Lobby -a nosceteipsum
<- :Smeagol!Test@192.168.0.4 MODE #Lobby -a nosceteipsum
-> irc.someirc.tdl MODE #Lobby -ao nosceteipsum nosceteipsum
<- :Smeagol!Test@192.168.0.4 MODE #Lobby -ao nosceteipsum nosceteipsum
-> irc.someirc.tdl MODE #Lobby +ao nosceteipsum nosceteipsum
<- :Smeagol!Test@192.168.0.4 MODE #Lobby +ao nosceteipsum nosceteipsum


And the actual echo output;

Code:
[21:35 12] RAWMODE: -> Smeagol -> +o nosceteipsum
[21:35 19] RAWMODE: -> Smeagol -> -o nosceteipsum
[21:36 21] RAWMODE: -> Smeagol -> +a nosceteipsum
[21:36 23] RAWMODE: -> Smeagol -> -a nosceteipsum
[21:38 20] RAWMODE: -> Smeagol -> -ao nosceteipsum nosceteipsum
[21:38 50] RAWMODE: -> Smeagol -> +ao nosceteipsum nosceteipsum


;---------------------------------
;-- mIRC 7.23 beta
Code:
-> irc.someirc.tdl MODE #Lobby -o nosceteipsum
<- :Smeagol!Test@192.168.0.4 MODE #Lobby -o nosceteipsum
-> irc.someirc.tdl MODE #Lobby +o nosceteipsum
<- :Smeagol!Test@192.168.0.4 MODE #Lobby +o nosceteipsum


And the actual echo output;

Code:
[21:45 11] RAWMODE: -> Smeagol -> +o nosceteipsum
[21:45 11] * Smeagol sets mode: +o nosceteipsum
[21:47 14] RAWMODE: -> Smeagol -> -o nosceteipsum
[21:47 14] * Smeagol sets mode: -o nosceteipsum


Now, as i said above, you can add the haltdef to all the other mode events, and it echos correctly, except for the +/-a mode.

which will still result in the following;

Code:
[21:49 14] RAWMODE: -> Smeagol -> -a nosceteipsum
[21:49 14] * Smeagol sets mode: -a nosceteipsum


Note: If you use more than one mode in the command eg; '/mode #chan +ao Nick Nick',
It echos just fine. Provided of course you are using the extra mode event haltdefs.

Code:
-> irc.someirc.tdl MODE #Lobby -ao nosceteipsum nosceteipsum
<- :Smeagol!Test@192.168.0.4 MODE #Lobby -ao nosceteipsum nosceteipsum
-> irc.someirc.tdl MODE #Lobby +ao nosceteipsum nosceteipsum
<- :Smeagol!Test@192.168.0.4 MODE #Lobby +ao nosceteipsum nosceteipsum


and the actual echo;

Code:
[21:56 19] RAWMODE: -> Smeagol -> -ao nosceteipsum nosceteipsum
[21:56 26] RAWMODE: -> Smeagol -> +ao nosceteipsum nosceteipsum



Not really sure what else i can add to this, let me know if there is.
I can normally be found in #mIRC on DALnet if you have any questions about how i tested it.

- Tw|tch

;-----


Lost in your digital reality.
#mIRC / #Helpdesk on DALnet.
Joined: Mar 2004
Posts: 526
Fjord artisan
Offline
Fjord artisan
Joined: Mar 2004
Posts: 526
Thanks twItch, much better than i could have done with reporting this 'issue'. I'm sure it will be followed up on by the powers that be here.


Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I noticed in version 7.22 it have a small problem to.

Message of the Day, portlane.se.quakenet.org
-
End of /MOTD command.

These show even when i haltdef $numeric 375 and 376, they should be hidden?



if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Mar 2012
Posts: 38
Ameglian cow
Offline
Ameglian cow
Joined: Mar 2012
Posts: 38
Those hide just fine for me in 7.22 using haltdef on the RAW numeric.
There is also RAW 372, which is the actual MOTD Info, which also hides just fine by using haltdef on the numeric.

Alternatively, you can 'Skip MOTD on connect' from within mIRC options;
alt+o > IRC > Options > [] Skip MOTD on Connect


Lost in your digital reality.
#mIRC / #Helpdesk on DALnet.
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I grab motd and sent it to a @window, but im not able to halt the text i pasted in here befor.

Never mind, found the problem. A litle error from my side =)

Last edited by sparta; 20/03/12 10:54 AM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Dec 2002
Posts: 5,421
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,421
Thanks this issue has been fixed for the next version.

Joined: Dec 2002
Posts: 5,421
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,421
Thanks for the detailed bug report.


Link Copied to Clipboard