SwiftIRC
IRC Discussion and Support
 
  Index  •  FAQ  •  Search  

It is currently Tue Sep 07, 2010 3:51 am




Post new topic Reply to topic  [ 2 posts ] 
 Seen script problems. 
Author Message
 Post subject: Seen script problems.
PostPosted: Mon Feb 08, 2010 11:46 pm 
User
User

Joined: Thu Jan 28, 2010 1:01 am
Posts: 27
It dosent notice when a person get kicked or when theyve chaged a nick, can someone help?

Code:
alias -l Logo return $+(1 - [, $+ $chr(3)) $+ $c3 $+ $strip($upper($1-)) $+ $c2 $+ $chr(3) $+ ]
alias -l c1 return $chr(3) $+ 03 $+ $strip($1-)
alias -l c2 return $chr(3) $+ 01 $+ $strip($1-)
on $*:TEXT:/^[.!@]seen/Si:#:{
  if (!$2) { .notice $nick 1[3SEEN1]: $c2(Please specifie a nick) }
  else {
    if ($2 == $me) { notice $nick 1[3SEEN1]: $c2(You found me!) }
    else {
      if ($2 == $nick) { notice $nick 1[3SEEN1]: $c2(You never looked in a mirror? WTF!) }
      else {
        if (!$hget(seen, $strip($2))) {
          notice $nick 1[3SEEN1]: $c2(I don't know who) $c1($2) $c2(is)
        }
        else {
          tokenize 126 $hget(seen, $strip($2))
          notice $nick $1 $logo($duration($calc($ctime - $2)) ago)
        }
      }
    }
  }
}
on *:TEXT:*:#:{
  hadd -m SEEN $nick 1[3SEEN1]: $c2(I have last seen:) $c1($nick) $c2(saying:) $c1($1-) $+ ~ $+ $ctime
}
on *:PART:#:{
  hadd -m SEEN $nick 1[3SEEN1]: $c2(I have last seen:) $c1($nick) $c2(parting) $c1($chan) $c2(with the message:) $c1($iif($1-,$v1,no reason)) $+ ~ $+ $ctime
}
on *:JOIN:#:{
  hadd -m SEEN $nick 1[3SEEN1]: $c2(I have last seen:) $c1($nick) $c2(joining) $c1($chan) $+ ~ $+ $ctime
}
on *:RAWMODE:#:{
  hadd -m SEEN $nick 1[3SEEN1]: $c2(I have last seen:) $c1($nick) $c2(setting mode:) $c1($1-) $+ ~ $+ $ctime
}
on *:ACTION:*:#:{
  hadd -m SEEN $nick 1[3SEEN1]: $c2(I have last seen:) $c1($nick) $c2(doing a action:) $c1($1-) $+ ~ $+ $ctime
}
on *:BAN:#:{
  hadd -m SEEN $nick 1[3SEEN1]: $c2(I have last seen:) $c1($nick) $c2(banning:) $c1($banmask) $+ ~ $+ $ctime
}
on *:KICK:#:{
  hadd -m SEEN $nick 1[3SEEN1]: $c2(I have last seen:) $c1($nick) $c2(kicking:) $c1($knick) $+ ~ $+ $ctime
}
on *:NICK:#:{
  hadd -m SEEN $nick 1[3SEEN1]: $c2(I have last seen:) $c1($nick) $c2(changing his/her nick to:) $c1($newnick) $+ ~ $+ $ctime
}
on *:EXIT:{
  hsave seen seen.txt
}
on *:START:{
  hload seen seen.txt
}


Offline
 Profile E-mail  
 
 Post subject: Re: Seen script problems.
PostPosted: Tue Feb 09, 2010 10:40 am 
User
User

Joined: Fri Sep 11, 2009 12:28 am
Posts: 41
For on KICK you're only saving info about the person who is doing the kicking ($nick), I think you also need to update info for the person being kicked ($knick). Just add another /hadd command within the on KICK remote script.

I have last seen $nick kicking $knick
I have last seen $knick get kicked by $nick

The same applies to on NICK:

I have last seen $nick changing nick to $newnick
I have last seen $newnick changing nick from $nick

Hope this helps.


Offline
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


 Who is online 

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 
Index  |  FAQ  |  Search

phpBB skin developed by: John Olson
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group