French mIRC Whois

By Kiritsu on Nov 01, 2016

Hello ! I made a french whois.

Exemple:

[20:00:00] Kiritsu est Kiritsu@Kiritsu.user.SomeNetworkName * Kiritsu
[20:00:00] Kiritsu est simple utilisateur sur #channel1 #channel2
[20:00:00] Kiritsu est voice sur +#channel3 +##channel4
[20:00:00] Kiritsu est opérateur sur @#channel5 @#channel6
[20:00:00] Kiritsu est connecté sur le serveur Some.NetworkName.net NetworkName
[20:00:00] Kiritsu est authentifié sur le compte Kiritsu
[20:00:00] Kiritsu a pour host local et IP: Kiritsu@localhost [127.0.0.1]
[20:00:00] Kiritsu est connecté via la connexion sécurisée (SSL)
[20:00:00] Kiritsu ne parle pas depuis 8mins 33secs
[20:00:00] Kiritsu est connecté depuis le 24/09/16 13:42:14
[20:00:00] Kiritsu Fin du /WHOIS

alias whois {
  ;whois the selected user
  whois $$1 $$1
}

raw 311:*:{
  echo -a -
  echo -at $2 est $3 $+ @ $+ $4 $5 $replace($6,:,) $7-
  halt
}

raw 319:*:{
  ; storing all channels
  set %chan $replace($3,:,) $4-
  var %a 0
  ; %b is the number of channels
  var %b $gettok(%chan,0,32)
  while (%a < %b) {
    inc %a
    ; if a channel starts by "@#" so the user is operator.
    if ($left($gettok(%chan,%a,32),2) == @#) {
      var %chanOperator %chanOperator $gettok(%chan,%a,32)
    }
    ; if a channel starts by "+#" so the user is voiced.
    elseif ($left($gettok(%chan,%a,32),2) == +#) {
      var %chanVoice %chanVoice $gettok(%chan,%a,32)
    }
    ; other type of channels. (half operator, simple user, owner, etc...)
    else {
      var %chanUser %chanUser $gettok(%chan,%a,32)
    }
  }
  ; displaying filtered channels.
  if (%chanUser) {
    echo -at $2 est simple utilisateur sur %chanUser
  }
  if (%chanVoice) {
    echo -at $2 est voice sur %chanVoice
  }
  if (%chanOperator) {
    echo -at $2 est opérateur sur %chanOperator
  }
  unset %chan
  halt
}

raw 338:*:{
  echo -at $2 a pour host local et IP: $3 [[ $+ $4 $+ ]]
  halt
}

raw 312:*:{
  echo -at $2 est connecté sur le serveur $3-
  halt
}

raw 330:*:{
  echo -at $2 est authentifié sur le compte $3
  halt
}

raw 320:*:{
  echo -at $2 est connecté via la connexion sécurisée (SSL)
  halt
}

raw 313:*:{
  echo -at $2 est un opérateur IRC
  halt
}

raw 317:*:{
  ; converting signon and idle into hours, mins, secs format
  if ($3 > 3600) {
    var %idleTime $replace($duration($3,3),:,$chr(32))
    var %idleTime $gettok(%idleTime,1,32) $+ hrs $gettok(%idleTime,2,32) $+ mins et $gettok(%idleTime,3,32) $+ secs
  }
  elseif ($3 < 3600) {
    var %idleTime $replace($duration($3), , et )
  }
  var %signonTime $asctime($4,dd/mm/yy HH:nn:ss)
  echo -at $2 ne parle pas depuis %idleTime
  echo -at $2 est connecté depuis le %signonTime
  halt
}

raw 318:*:{
  echo -at $2 Fin du /WHOIS
  echo -a -
  halt
}   

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.