@Sorasyn I think $nick()
supports nick prefixes too but as an undocumented feature. I might be wrong but investigate for yourself.
if (!$2) || (!$3) || (!$4)
could be shortened to if (!$4)
because if the fourth token exists then the second and third must exist.
just be aware that !$4
means the fourth token could be $null
, 0
, or $false
. if the command needs a specific type of input you might want to use comparisons such as isnum
(for days).
$chan
and #
are interchangeable as well, just a tip.
Keep it up.