It will be more efficient if you use Hash Tables
On *:text:!add *:#:{ if ($nick isop #) { hadd -m cmds $2 $3- } }