Advertisement
Skreffnet

Búsqueda de usuarios en catalán.

May 18th, 2020 (edited)
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.91 KB | None | 0 0
  1. ; Simple Seen v1.6 - by entropy 2017
  2. ; Usage: !seen <nick>
  3.  
  4. on *:start:{ .timerseen -o 0 300 saveall }
  5. on *:exit:{ saveall }
  6. on *:disconnect:{ if ($hget($+(seen.,$network))) { hsave -o $+(seen.,$network) $qt($+($scriptdir,seen.,$network,.dat)) | hfree $+(seen.,$network) } }
  7.  
  8. on *:connect:{
  9.   if (!$hget($+(seen.,$network))) { hmake $+(seen.,$network) 100 }
  10.   if ($exists($qt($+($scriptdir,seen.,$network,.dat)))) { hload $+(seen.,$network) $qt($+($scriptdir,seen.,$network,.dat)) }
  11. }
  12.  
  13. alias -l saveall { var %a = 1, %b | while ($scon(%a)) { %b = $v1 | scid %b | if ($hget($+(seen.,$network))) { hsave -o $+(seen.,$network) $qt($+($scriptdir,seen.,$network,.dat)) } | inc %a } }
  14. alias -l clearall { var %a = 1, %b | while ($scon(%a)) { %b = $v1 | scid %b | if ($hget($+(seen.,$network))) { hfree $+(seen.,$network) | hmake $+(seen.,$network) 100 } | inc %a } }
  15.  
  16. #seen on
  17. on *:text:*:#:{
  18.   hadd -m $+(seen.,$network) $nick $fulladdress $ctime Ha enviat un missatge al canal # amb text: $qt($1-)
  19.   if (?seen iswm $1 && $left($1,1) isin @!. && $2) { .timerdoseen -o 1 2 seenx # $2- }
  20. }
  21. on *:input:#:{
  22.   hadd -m $+(seen.,$network) $me $address($me,5) $ctime He escrit $qt($1-) a #
  23.   if (?seen iswm $1 && $left($1,1) isin @!. && $2) { .timerdoseen -o 1 2 seenx # $2- }
  24. }
  25.  
  26. on *:action:*:#:{ hadd -m $+(seen.,$network) $nick $fulladdress $ctime Actioning # amb el text: $qt($1-) }
  27. on *:join:#:{ hadd -m $+(seen.,$network) $nick $fulladdress $ctime Ha entrat a # }
  28. on *:part:#:{ hadd -m $+(seen.,$network) $nick $fulladdress $ctime Ha sortit de # amb el text: $qt($1-) }
  29. on *:rawmode:#:{ hadd -m $+(seen.,$network) $nick $fulladdress $ctime Ha canviat els modes de # a: $qt($1-) }
  30. on *:kick:#:{ hadd -m $+(seen.,$network) $nick $fulladdress $ctime Kicking $knick out of # with text: $qt($1-) }
  31. on *:quit:{ hadd -m $+(seen.,$network) $nick $fulladdress $ctime Ha desconectat de $network amb el text: $qt($1-) }
  32. on *:topic:#:{ hadd -m $+(seen.,$network) $nick $fulladdress $ctime Ha canviat el topic de # a: $qt($1-) }
  33. on *:nick:{ hadd -m $+(seen.,$network) $nick $fulladdress $ctime S'ha canviat el nick a: $newnick }
  34.  
  35. alias seenx {
  36.   var %a = $2
  37.   var %b = $hget($+(seen.,$network),$2)
  38.   var %q = $hfind($+(seen.,$network),$2,1).item
  39.   var %time = $asctime($gettok($hget($+(seen.,$network),%a),2,32))
  40.  
  41.   var %nt = $gettok($hget($+(seen.,$network),%a),2,32)
  42.   var %dur = $calc($ctime - %nt)
  43.   var %dur = Fa $replace($duration(%dur),wks,setmanes,wk,setmanes,days,dies,day,dia,hrs,hores,hr,hora,mins,minuts,min,minut,secs,segons,sec,segonAEA)
  44.  
  45.   var %rsn = $gettok($hget($+(seen.,$network),%a),3-,32)
  46.   var %no = $gettok(%a,1,33)
  47.   var %mo = $gettok($gettok(%b,1,32),2,33)
  48.  
  49.   if (%b) { msg $1 [Seen] $chr(9679) L'ultima vegada que s'ha vist a l'usuari/a $qt(%q) ha sigut $iif(%mo,$+($chr(40),%mo,$chr(41))) %time $+($chr(40),%dur,$chr(41)) - %rsn }
  50.   else { msg $1 [Seen] $chr(9679) No s'ha trobat informació per $qt($2). }
  51. }
  52. #seen end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement