To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Savebuff/mIRC

From ZNC
Revision as of 13:46, 17 December 2011 by DarthGandalf (talk | contribs) (Created page with "===== mIRC Script ===== This mIRC script is useful for parsing the events saved within the savebuff module. on ^*:TEXT:*:#: { if ($nick == *savebuff) { var %nick = $get...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
mIRC Script

This mIRC script is useful for parsing the events saved within the savebuff module.

on ^*:TEXT:*:#: {
 if ($nick == *savebuff) {
  var %nick = $gettok($2,1,$asc(!))
  if ($3 == MODE)     echo $color(mode) # $asctime($1, $timestampfmt) * %nick sets mode: $4-
  elseif ($3 == JOIN) echo $color(join) # $asctime($1, $timestampfmt) * Join: %nick ( $+ $gettok($2,2,$asc(!)) $+ )
  elseif ($3 == QUIT) echo $color(quit) # $asctime($1, $timestampfmt) * Quit: %nick ( $+ $gettok($2,2,$asc(!)) $+ ) ( $+ $4- $+ )
  elseif ($3 == PART) echo $color(part) # $asctime($1, $timestampfmt) * Part: %nick ( $+ $gettok($2,2,$asc(!)) $+ )
  elseif ($3 == NICK) echo $color(nick) # $asctime($1, $timestampfmt) * %nick is now known as $4
  elseif ($3 == KICK) echo $color(kick) # $asctime($1, $timestampfmt) $2 was kicked by %nick ( $+ $5- $+ )
  else                echo 4 # *** UNHANDLED LINE <12 $+ $1- $+ >
  halt
 }
 elseif ($nick == ***) {
  echo $color(notice) # *** $1-
  halt
 }
}