Advertisement
westor

MOTD File Open for ninja v1.0

Oct 21st, 2021
2,324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.51 KB | None | 0 0
  1. alias -l motd_file { return $mircdir $+ test_motd.txt }
  2.  
  3. RAW *:*: {
  4.   if ($numeric == 372) {
  5.     if (!%motd) && ($isfile($motd_file)) { .remove $qt($motd_file) }
  6.     set -eu10 %motd 1
  7.  
  8.     if ($2 !== $null) { write $qt($motd_file) $2- }
  9.   }
  10.  
  11.   if ($numeric == 376) {
  12.     unset %motd
  13.  
  14.     if (!$file($motd_file)) { return }
  15.  
  16.     .timer -h 1 0 motd_ask_open
  17.   }
  18. }
  19.  
  20. alias motd_ask_open {
  21.   var %ask = $input(Do you want to open the MOTD file??,qyidhu,Question)
  22.  
  23.   if (%ask) { run $qt($motd_file) }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement