-
Notifications
You must be signed in to change notification settings - Fork 3
/
fix
31 lines (31 loc) · 1.18 KB
/
fix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
on *:load:{
unset %f
var %m = $chr(59) you can put your own q here, this file will not be overwritten when updating nbs-irc.
if (!$exists(scripts\a-own.nbs)) .write scripts\a-own.nbs $replace(%m,q,aliases)
.load -a scripts\a-own.nbs
n.checkscript alias1.nbs -a
n.checkscript alias2.nbs -a
n.checkscript alias3.nbs -a
if (!$exists(scripts\r-own.nbs)) .write scripts\r-own.nbs $replace(%m,q,scripts)
.load -rs1 scripts\r-own.nbs
n.checkscript main.nbs -rs
if (!$tname) .theme cold
if (!%f) .echo -qg $input(Repair appears to be successfull $+ $chr(44) restart may be required,o)
.unload -rs fix
}
alias -l n.checkscript {
if ($2 == -a) && (!$alias($1)) || ($2 == -rs) && (!$script($1)) {
if ($exists(scripts\ $+ $1)) {
.load [ $2 ] scripts\ $+ $1
}
else {
if ($dialog(strt)) dialog -x strt
set %f 1
var %a = -age 4,4 $str(W,54)
echo %a
echo -ag * Error: file $mircdirscripts\ $+ $1 is missing, Replace the file and restart nbs or reinstall an update/full version.
echo -ag * Note: installing updates will keep all settings, full reinstall will only keep nbs settings.
echo %a
}
}
}