mIRC Homepage
Posted By: raZOR MOTD - 18/02/06 06:34 PM
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?
Posted By: mIRCManiac Re: MOTD - 18/02/06 08:35 PM
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.
Posted By: raZOR Re: MOTD - 18/02/06 09:11 PM
i got same result smirk
© mIRC Discussion Forums