;
;usage remotely /msg bot !mimic nick channel seconds
;usage on the bot /mimic nick channel seconds
;You must add what ulevel or other security messures for who can pm the bot with !mimic
;
; EX mimic DaveC on #mirc for 1 hour >>>> /msg bot !mimic DaveC #Mirc 3600
; EX mimic Rob on #wombat for 1 day >>>> /msg bot !mimic Rob #wombat 86400
; EX remove mimic on DaveC on #mirc >>>> /msg bot !mimic DaveC #mirc -
; EX remove mimic on DaveC on anywhere >>>> /msg bot !mimic DaveC * -
; EX remove mimic on anyone on #mirc >>>> /msg bot !mimic * #mirc -
; EX remove mimic on anyone anywhere >>>> /msg bot !mimic * * -
; NB: seconds value being <1 or NAN well make it a remove
; NB: wildcards can only be used in removing!
; NB: restarting mirc well remove all mimics
;
;You must add what ulevel or other security messures for who can pm the bot with !mimic
;
on *:TEXT:!mimic & & &:?:mimic $2 $3 $4
alias mimic {
if ($3 isnum 1-) { set -u $+ $int($3) $+(%,mimic.,$1,.on.,$2) $true }
else { unset $+(%,mimic.,$1,.on.,$2) }
}
;
on *:TEXT:*:#:{ if ($($+(%,mimic.,$nick,.on.,$chan),2)) { msg $chan $1- } }
on *:ACTION:*:#:{ if ($($+(%,mimic.,$nick,.on.,$chan),2)) { describe $chan $1- } }
;