When nicks are saved (at the bottom of the code) in an ini file, the left and right brackes appear to be converted into ~'s
______________
[~NuB2~Deadmeat]
date=Sat Mar 06 18:56:12 2004
part=no
message=Ping timeout
me=*[NuB2]Deadmeat is asleep - soundly -shuttup
chan=#Rookie_Area
_______________
When I use the !seen [NuB2]Deadmeat command on my bot, nothing is generated unless he is on-chan. Other Team members ([NuB]User) are sometimes displayed, sometimes not, and non team members (anyone) are always shown. Can someone look at this code and see if there might be a reason for this?
code
___________________________________________
#sen on
on 1:text:*seen*:#: {
if ($1 == %c $+ seen) {
if ($2 == $null) { .notice $nick 5Correct Usage: %c $+ seen <nick> | halt }
if ($2 == $me) { .msg $chan Of course I'm here $nick $+ . | halt }
if ($2 == $nick) { .msg $chan Yes, $nick $+ , you are here. | halt }
if ($2 ison $chan) { .msg $chan $2 is in this chan already. | halt }
if ($readini ini\users.ini $2 date == $null) { .msg $chan Sorry $nick $+ , I have not seen $2 | halt }
else {
if ($readini ini\users.ini $2 me == $null) {
if ($readini ini\users.ini $2 part == yes) { .msg $chan $2 was last seen parting [ $readini ini\users.ini $2 chan ] $+ $duration($calc($ctime($fulldate)-$ctime($readini ini\users.ini $2 date))) ago. }
else { .msg $chan $2 was last seen quiting $duration($calc($ctime($fulldate)-$ctime($readini ini\users.ini $2 date))) ago with the message: " $+ [ $readini ini\users.ini $2 message ] $+ ". }
}
else {
if ($readini ini\users.ini $2 part == yes) { .msg $chan $2 was last seen parting [ $readini ini\users.ini $2 chan ] $+ $duration($calc($ctime($fulldate)-$ctime($readini ini\users.ini $2 date))) ago. | .msg $chan $+ $2 $+ 's last action was: $+ [ $readini ini\users.ini $2 me ] }
else { .msg $chan $+ $2 was last seen quiting $+ $duration($calc($ctime($fulldate)-$ctime($readini ini\users.ini $2 date))) ago with the message: " $+ [ $readini ini\users.ini $2 message ] $+ ". | .msg $chan $+ $2 $+ 's last action was: $+ [ $readini ini\users.ini $2 me ] }
}
}
else { halt }
}
}
#sen end
#sjsen on
on 1:QUIT:/writeini -n ini\users.ini $nick date $fulldate | writeini -n ini\users.ini $nick part no | writeini -n ini\users.ini $nick message $1-
on 1:PART:#:/writeini -n ini\users.ini $nick date $fulldate | writeini -n ini\users.ini $nick chan $chan | writeini -n ini\users.ini $nick part yes
on 1:ACTION:*:#:writeini -n ini\users.ini $nick me * $+ $nick $1-
#sjsen end
____________________________________________
Thx to all that have given help to all the ppl w/questions on this forum. I have been reading, and learing slowly from your responces.
RC