on *:text:!*:#: {
if ((%floodcommand) || ($($+(%,floodcommand.,$nick),2))) { return }
set -u1 %floodcommand On
set -u5 %floodcommand. $+ $nick
var %command = $1
var %i = 1
while (%i <= %commandID) {
if ($readini(%commandFile, %i, name) == %command) && ($readini(%commandFile, %i, channel) == $chan) {
var %msg = $readini(%commandFile, %i, message)
// If the message has an @ symbol, $checkMsgAt will convert the @ back into a $
%msg = $checkMsgAt(%msg)
// Now we have to write the message to a .ini file then read from it, otherwise the bot will output as "$nick" instead of
// the person's actual username.
writeini -n %tempComFile command message %msg
var %newMsg = $readini(%tempComFile, command, message)
msg $chan %newMsg
return
}
inc %i
}
msg $chan Command ( %command ) was not found $nick . Write !commands to see a list.
}