Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias -l motd_file { return $mircdir $+ test_motd.txt }
- RAW *:*: {
- if ($numeric == 372) {
- if (!%motd) && ($isfile($motd_file)) { .remove $qt($motd_file) }
- set -eu10 %motd 1
- if ($2 !== $null) { write $qt($motd_file) $2- }
- }
- if ($numeric == 376) {
- unset %motd
- if (!$file($motd_file)) { return }
- .timer -h 1 0 motd_ask_open
- }
- }
- alias motd_ask_open {
- var %ask = $input(Do you want to open the MOTD file??,qyidhu,Question)
- if (%ask) { run $qt($motd_file) }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement