replace with a nick that would be made in the bot
nick bot alternative
[b]
RESULT [/b] [i]
.idle the|saint
..::[ the|saint ] [ 2days 17hrs 46mins 57secs ]::..
.host the|saint
..::[ the|saint ] [ ~thesaint@x.x.x.x * thesaint ]::..
.host hawkee
..::[ hawkee ] [ is not online ]::..
.idle hawkee
..::[ hawkee ] [ is not online ]::.. [/i]
```mirc
on $*:TEXT:/^[.!](host|idle)\b/iS:#:{
var %2 = $strip($2), %nick =
if ($istok(%nick,$me,32) && !%n. [ $+ [ $nick ] ]) {
if ($regml(1) == host && %2) {
set %hostchan $chan
who %2
set %hostnick %2
.enable #host
}
elseif ($regml(1) == idle && %2) {
set %idlechan $chan
whois %2 %2
set %idlenick %2
.enable #idle
}
set -u5 %n. [ $+ [ $nick ] ] 1
}
}
#host off
raw 352:*:{
msg %hostchan $+($chr(46),$chr(46),$chr(58),$chr(58),$chr(91),$chr(32),%hostnick,$chr(32),$chr(93),$chr(32),$chr(91),$chr(32),$3,$chr(64),$4,$chr(32),$5,$chr(32),$9-,$chr(32),$chr(93),$chr(58),$chr(58),$chr(46),$chr(46))
unset %host*
.disable #host
halt
}
raw 315:*:{
msg %hostchan $+($chr(46),$chr(46),$chr(58),$chr(58),$chr(91),$chr(32),%hostnick,$chr(32),$chr(93),$chr(32),$chr(91),$chr(32),$chr(105),$chr(115),$chr(32),$chr(110),$chr(111),$chr(116),$chr(32),$chr(111),$chr(110),$chr(108),$chr(105),$chr(110),$chr(101),$chr(32),$chr(93),$chr(58),$chr(58),$chr(46),$chr(46))
unset %host*
.disable #host
halt
}
#host end
#idle off
raw 317:*:{
msg %idlechan $+($chr(46),$chr(46),$chr(58),$chr(58),$chr(91),$chr(32),%idlenick,$chr(32),$chr(93),$chr(32),$chr(91),$chr(32),$duration($3,1),$chr(32),$chr(93),$chr(58),$chr(58),$chr(46),$chr(46))
unset %idle*
.disable #idle
halt
}
raw 402:*:{
msg %idlechan $+($chr(46),$chr(46),$chr(58),$chr(58),$chr(91),$chr(32),%idlenick,$chr(32),$chr(93),$chr(32),$chr(91),$chr(32),$chr(105),$chr(115),$chr(32),$chr(110),$chr(111),$chr(116),$chr(32),$chr(111),$chr(110),$chr(108),$chr(105),$chr(110),$chr(101),$chr(32),$chr(93),$chr(58),$chr(58),$chr(46),$chr(46))
unset %idle*
.disable #idle
halt
}
#idle end
```