1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
on *:TEXT:!add*:#:{ if ($nick isop $chan) { if ($2 == database) { if ($exists($2 $+ .hsh) { .notice $nick Database ' $+ $2 $+ ' already exists! | halt } hmake -s $2 $+ .hsh 100 .notice $nick Created a database with 100 slots! halt } if ($2 == $null) { if (!$exists(test.hsh) { .notice $nick Database dosnt exists please add a database first! | halt } msg $chan Hej } } } |
| Parsed for bracket errors and indented: | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
on *:TEXT:!add*:#:{ if ($nick isop $chan) { if ($2 == database) { if ($exists($2 $+ .hsh) { .notice $nick Database ' $+ $2 $+ ' already exists! | halt } hmake -s $2 $+ .hsh 100 .notice $nick Created a database with 100 slots! halt } if ($2 == $null) { if (!$exists(test.hsh) { .notice $nick Database dosnt exists please add a database first! | halt } msg $chan Hej } } } |