mIRC Home    About    Download    Register    News    Help

Print Thread
MOTD #142634 18/02/06 06:34 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
tested on 6.17

Code:
;MOTD
raw 372:*:{
  if (%hmotd == on ) { halt }
  haltdef
  window -lk +s @MOTD 220 50 320 290 @MOTD Verdana 11
  if !$line(@MOTD,0) {
    .aline @MOTD $theme(logo) $network Message of the Day
    .aline @MOTD $chr(160)
    .aline @MOTD $chr(160)
  }
  .aline @MOTD $theme(logo) $2-
  halt
}
raw 376:*:{
  if (%hmotd == on ) { halt }
  haltdef
  .aline @MOTD $chr(160) 
  .aline @MOTD $theme(logo) $2-
  halt
}
  


and altho i have on raw 376 hatdef, i still get message from
server in status window:
"- jubiigames.dk.quakenet.org Message of the Day -"

anyone can explain why?


IceCapped
Re: MOTD #142635 18/02/06 08:35 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
If %hmotd is set to ON then the script is being halted
before it gets to the haltdef so it displays as normal.
Try putting the haltdef ahead of the IF statement.

Last edited by mIRCManiac; 18/02/06 08:45 PM.
Re: MOTD #142636 18/02/06 09:11 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
i got same result smirk


IceCapped