aIRC — File Browser

aIRCv0.8.69 / aIRCv0.8.69 / script / eoa.mrc

eoa.mrc — 26.57 KB — Download this file

;/**********************************************************************
; *
; * aIRC
; * Default theme
; *
; **********************************************************************/
;
alias ^addcomment2event {
  if (%~^event.comment != $null) { %~^event.comment = %~^event.comment - $1- }
  else { %~^event.comment = $1- }
}
alias ^fixtext {
  var %text = $1-
  if (%~^event.comment != $null) { %text = %text - $ifmatch }
  if (%~^event.fkeys != $null) { %text = %text ( $+ $ifmatch $+ ) }
  return %text
}
alias ^wallops { %:echo  $+ $^wo* ! $+ %::nick $+ ! %::text }
alias ^kick {
  if (y isin %::flags) { var %text = You were kicked }
  else { var %text = %::knick was kicked }
  if (c !isin %::flags) {
    %:echo $chr(160)
    %text = %text from %::chan $+ 
  }
  %text = %text by %::nick $+  [ $+ %::reason $+ ]
  %:echo $^*** $^fixtext(%text)
}
alias ^rejoin { %:echo $^*** Attemping to rejoin... }
alias ^join {
  if (y isin %::flags) {
    if (r isin %::flags) { %:echo $^*** Rejoined %::chan }
    else { %:echo $^*** Now talking in %::chan }
    return
  }
  var %text
  if (s isin %::flags) {
    if (c isin %::flags) { %text = Joins: %::nick }
    else { %text = Joins %::chan $+ : %::nick }
    if (a isin %::flags) { %text = %text $^bp(%::address) }
  }
  else {
    %text = %::nick
    if (a isin %::flags) { %text = %text $^bp(%::address) }
    %text = %text has joined %::chan $+ 
  }
  if (%::handle != $null) { %text = %text - handle: %::handle }
  %:echo $^*** $^fixtext(%text)
}
alias ^_join.clones { return $1 clones from $2 $+ : $3 }
alias ^part {
  var %text
  if (s isin %::flags) {
    if (c isin %::flags) { %text = Parts: %::nick }
    else { %text = Parts %::chan $+ : %::nick }
    if (a isin %::flags) { %text = %text $^bp(%::address) }
  }
  else {
    %text = %::nick
    if (a isin %::flags) { %text = %text $^bp(%::address) }
    %text = %text has left %::chan $+ 
  }
  if (p isin %::flags) { %text = %text [ $+ %::reason $+ ] }
  %:echo $^*** $^fixtext(%text)
}
alias ^nick {
  var %text
  if (y isin %::flags) { %text = Your nick is now %::newnick }
  else { %text =  %::nick is now known as %::newnick }
  return $^*** $^fixtext(%text)
}
alias ^invite {
  var %text = %::nick $^bp(%::address) has invited you to %::chan
  %:echo $^*** $^fixtext(%text)
}
alias ^usermode {
  var %text = %::nick sets mode: %::modes
  %:echo $^*** $^fixtext(%text)
}
alias ^mode {
  if (c isin %::flags) { var %text = %::nick sets mode: %::modes }
  else { var %text = %::nick sets %::chan $+  mode: %::modes }
  %:echo $^*** $^fixtext(%text)
}
alias ^topic {
  var %text,%in
  if (c !isin %::flags) { %in = in %::chan $+  }
  if (u isin %::flags) { %text = %::nick unsets topic %in }
  else { %text = %::nick changes topic %in to ' $+ %::topic $+ ' }
  %:echo $^*** $^fixtext(%text)
}
alias ^quit {
  var %text
  if (c isin %::flags) {
    if (s isin %::flags) { %text = Quits: %::nick }
    else { %text = %::nick has quit IRC }
  }
  else { %text = %::nick $^bp(%::address) Quit }
  if (%::reason != $null) { %text = %text [ $+ %::reason $+ ] }
  return $^*** $^fixtext(%text)
}
alias ^textchan {
  var %msg = %::msg,%nick = %::nick
  if (n isin %::flags) { var %msg }
  if (p isin %::flags) { %nick = $^chanickopvoice(%::nick,%::flags) }
  if (y isin %::flags) {
    if (m isin %::flags) { %:echo < $+ %nick $+ > %msg }
    else { %:echo > %msg }
  }
  elseif (o isin %::flags) { %:echo < $+ %nick $+ : $+ %::target $+ > %msg }
  else { %:echo < $+ %nick $+ > %msg }
}
alias ^textuser {
  var %msg = %::msg,%nick = %::nick
  if (n isin %::flags) { var %msg }
  if (y isin %::flags) {
    if (m isin %::flags) { %:echo < $+ %nick $+ > %msg }
    else { %:echo > %msg }
  }
  elseif (d isin %::flags) { %:echo * $+ %nick $+ * %msg }
  elseif (q isin %::flags) { %:echo < $+ %nick $+ > %msg }
  else { %:echo * $+ %nick $+ * %msg }
}
alias ^textsend { return -> * $+ $1 $+ * $2 }
alias ^noticechan {
  var %msg = %::msg,%nick = %::nick
  if (n isin %::flags) { var %msg }
  if (p isin %::flags) { %nick = $^chanickopvoice(%::nick,%::flags) }
  %:echo - $+ %nick $+ : $+ %::target $+ - %msg
}
alias ^noticeuser {
  var %msg = %::msg
  if (n isin %::flags) { var %msg }
  return - $+ %::nick $+ - %msg
}
alias ^noticesend { return -> - $+ $1 $+ - $2 }
alias ^actionchan {
  var %msg = %::msg,%nick = %::nick
  if (n isin %::flags) { var %msg }
  if (p isin %::flags) { %nick = $^chanickopvoice(%::nick,%::flags) }
  if (y isin %::flags) { %:echo * %nick %msg }
  elseif (o isin %::flags) { %:echo * %nick $+ : $+ %::target $+  %msg }
  else { %:echo * %nick %msg }
}
alias ^actionuser {
  var %msg = %::msg,%nick = %::nick
  if (n isin %::flags) { var %msg }
  if (y isin %::flags) || (q isin %::flags) || (d isin %::flags) { %:echo * %nick %msg }
  else { %:echo * $+ %nick $+ * %msg }
}
alias ^actionsend { return -> * $+ $1 $+ * $2 }
alias ^ctcpchan {
  var %parms = %::parms,%from = %::nick
  if (%parms == $null) || (h isin %::flags) { var %parms }
  if (p isin %::flags) { %from = $^chanickopvoice(%::nick,%::flags) }
  %:echo [ $+ %from $+ : $+ %::chan $+  %::ctcp $+ ] %parms
}
alias ^ctcpuser {
  var %parms = %::parms,%from = %::nick
  if (%parms == $null) || (h isin %::flags) { var %parms }
  %:echo [ $+ %from %::ctcp $+ ] %parms
}
alias ^ctcpreply {
  var %parms = %::parms
  if (%parms == $null) { var %parms }
  %:echo [ $+ %::nick %::ctcp $+  Reply]: %parms
}
alias ^ctcpsend { return -> [[ $+ $1 $+ ]] $2 }
alias ^ctcpreplysend { return -> [[ $+ $1 $+ ]] $2 }
alias ^notify {
  var %line = $^b(%::nick)
  if (%::address != $null) { %line = %line ( $+ %::address $+ ) }
  %line = %line is on IRC.
  if (%::mask != $null) { %line = %line Address check $iif(%::verified,passed:,failed:) %::mask }
  if (%::note != $null) { %line = %line $^bp($ifmatch) }
  %:echo $^*** $^fixtext(%line)
}
alias ^unotify {
  var %line = $^b(%::nick)
  if (%::address != $null) { %line = %line ( $+ %::address $+ ) }
  %line = %line has left IRC.
  if (%::mask != $null) && (%::fulladdress != $null) { %line = %line Address check $iif(%::verified,passed:,failed:) %::mask }
  %:echo $^*** $^fixtext(%line)
}
alias ^ban {
  var %text = Ban: %::nick bans %::bannednicks [ $+ %::banmask $+ ]
  %:echo $^*** $^fixtext(%text)
}
alias ^unban {
  var %text = Unban: %::nick unbans %::bannednicks [ $+ %::banmask $+ ]
  %:echo $^*** $^fixtext(%text)
}
alias ^service { return $^*** Using $upper($1) $+ : $2- }
alias ^start { info.a Ready! aIRC $_vers }
alias ^clone {
  if (c isin $5) { return $^*** Clones: $3 [ $+ $2 $+ ] }
  return $^*** Clones $1 $+ : $3 [ $+ $2 $+ ]
}
alias ^bot { return $^*** Using $1 $+ : $5- }
alias ^error {
  var %string = ERROR: $1-
  return $^*** $^errcol(%string)
}
alias ^warning {
  var %string = WARNING: $1-
  return $^*** $^warncol(%string)
}
alias ^whois.start {
  var %ls =  $+ $colour(info2) $+ $^boxitemstart
  ^boxbegin + $colour(info2) 40 /whois %=whois.nick
  %:echo %ls $+    $+ $colour(info2) $+ Address  %=whois.addy
  %:echo %ls $+       $+ $colour(info2) $+ Name  %=whois.name
  if (%=whois.handle != $null) { %:echo %ls $+     $+ $colour(info2) $+ Handle  %=whois.handle }
  if (%=whois.flags != $null) { %:echo %ls $+      $+ $colour(info2) $+ Flags  %=whois.flags }
  if (%=whois.from != $null) { %:echo %ls $+       $+ $colour(info2) $+ From  %=whois.from }
  if (%=whois.clones != $null) { %:echo %ls $+     $+ $colour(info2) $+ Clones  %=whois.clones }
}
alias ^whois.channels { %:echo  $+ $colour(info2) $+ $^boxitemstart $+   $+ $colour(info2) $+ Channels  %=whois.channels }
alias ^whois.end {
  var %ls =  $+ $colour(info2) $+ $^boxitemstart
  %:echo %ls $+     $+ $colour(info2) $+ Server   %=whois.server
  if (%=whois.away != $null) { %:echo %ls $+       $+ $colour(info2) $+ Away  %=whois.away }
  if (%=whois.ircop != $null) { %:echo %ls $+      $+ $colour(info2) $+ Ircop  %=whois.ircop }
  var %i = 1
  while ($_whoisextra.get(%i,raw)) {
    %:echo %ls $+       $+ $colour(info2) $+ Extra   $gettok($_whoisextra.get(%i),2-,32)
    inc %i
  }
  if (%=whois.idle != $null) { %:echo %ls $+       $+ $colour(info2) $+ Idle  $_duration(%=whois.idle) }
  if (%=whois.login != $null) { %:echo %ls $+      $+ $colour(info2) $+ Login  $_date($asctime(%=whois.login)) }
  ^boxend + $colour(info2) 40
}
alias ^whowas {
  var %ls =  $+ $colour(info2) $+ $^boxitemstart
  ^boxbegin + $colour(info2) 40 /whowas %=whowas.nick
  %:echo %ls $+    $+ $colour(info2) $+ Address  %=whowas.addy
  %:echo %ls $+       $+ $colour(info2) $+ Name  %=whowas.name
  if (%=whowas.flags != $null) { %:echo %ls $+     $+ $colour(info2) $+ Access  %=whowas.flags }
  if (%=whowas.from != $null) { %:echo %ls $+       $+ $colour(info2) $+ From  %=whowas.from }
  if (%=whowas.clones != $null) { %:echo %ls $+     $+ $colour(info2) $+ Clones  %=whowas.clones }
  if (%=whowas.server != $null) { %:echo %ls $+     $+ $colour(info2) $+ Server  %=whowas.server }
  if (%=whowas.away != $null) { %:echo %ls $+       $+ $colour(info2) $+ Away  %=whowas.away }
  ^boxend + $colour(info2) 40
}
alias ^who.start { ^boxbegin + $colour(normal) 40 /who }
alias ^who { %:echo  $+ $colour(info) $+ $^boxitemstart $^b($6) $+  $3 $+ @ $+ $4 $5 $+  $+ $colour(info2) $+ $iif(G isin $7, AWAY) $+ $iif(% isin $7, INVISIBLE) $+ $iif(* isin $7, IRCOP) [HOPS: $8 $+ ] $9- }
alias ^who.end {
  if (%=whototal.t > 0) { ^boxend + $colour(normal) 40 /who $2 - $_nsingoplur(%=whototal.t,user,users) found }
  else { %:echo $^*** End of /WHO $_bracket($2) No users found }
}
alias ^names.start { ^boxbegin + $colour(info) 40 /names %=names.chan }
alias ^names {
  if ($_getsetup(script,_nicklistcol.state)) { var %cols = $_getsetup(script,_nicklistcol.cols),%@ =  $+ $gettok(%cols,5,32) $+ @ , %+ =  $+ $gettok(%cols,6,32) $+ + }
  else { var %@ = @ , %+ = + }
  %:echo $^boxitemstart $replace(%=names.names,@,%@,+,%+)
}
alias ^names.invisible { %:echo $^*** $^bp(%=names.chan) All users are invisible }
alias ^names.nousers { %:echo $^*** $^bp(%=names.chan) Channel empty or secret }
alias ^names.end {
  %:echo $^boxitemstart $^bp(%=names.chan) $_nsingoplur(%=names.t,user,users) $+ , $_nsingoplur(%=names.@,OP,OPs) $^p($_percent(%=names.@,%=names.t,2)) $+ ,  $_nsingoplur(%=names.+,Voice,Voices) $^p($_percent(%=names.+,%=names.t,2)) $+ , $_nsingoplur(%=names.n,Drone,Drones) $^p($_percent(%=names.n,%=names.t,2))
  ^boxend + $colour(info) 40
}
alias ^names.resume { %:echo $^*** $^bp(%=names.chan) $_nsingoplur(%=names.t,user,users) $+ , $_nsingoplur(%=names.@,OP,OPs) $^p($_percent(%=names.@,%=names.t,2)) $+ ,  $_nsingoplur(%=names.+,Voice,Voices) $^p($_percent(%=names.+,%=names.t,2)) $+ , $_nsingoplur(%=names.n,Drone,Drones) $^p($_percent(%=names.n,%=names.t,2)) }
alias ^joinsynchtime { %:echo $^*** Join synched in %=names.synchtime $+ s }
alias ^userhost { %:echo $^*** Userhost: $^b($1) $+ ! $+ $gettok($2,2,33) $_color(info2) $+  $+  $iif($3,AWAY) $iif($4,IRCOP) }
alias ^lusers {
  var %ls = $^boxitemstart
  ^boxbegin +l $null 40 /lusers %=lusers.server
  if (%=lusers.251) { %:echo %ls $^n(%=lusers.251) }
  if (%=lusers.252) { %:echo %ls $^n(%=lusers.252) }
  if (%=lusers.253) { %:echo %ls $^n(%=lusers.253) }
  if (%=lusers.254) { %:echo %ls $^n(%=lusers.254) }
  if (%=lusers.255) { %:echo %ls $^n(%=lusers.255) }
  ^boxend + $null 40
}
alias ^admin {
  var %ls = $^boxitemstart
  ^boxbegin +l $null 40
  %:echo %ls Administrative info about $^b(%=admin.server)
  %:echo %ls %=admin.info1
  %:echo %ls %=admin.info2
  %:echo %ls %=admin.info3
  ^boxend + $null 40
}
alias ^banlist.start { ^boxbegin +l $null 40 %=banlist.chan Ban List }
alias ^banlist { %:echo $^boxitemstart $^bp($^b($3)) $iif($numtok($4-,32) > 1,set by [ $4 ] [ $_shortdate($asctime($5)) ] ) }
alias ^banlist.end {
  %:echo $^boxitemstart $^bp(%=banlist.chan) $_nsingoplur(%=banlist.t,ban,bans) found
  ^boxend + $null 40
}
alias ^banlist.nobans { %:echo $^*** $^bp(%=banlist.chan) No bans found }
alias ^silencelist.start { ^boxbegin +l $null 40 %=silencelist.nick Silence List }
alias ^silencelist { %:echo $^boxitemstart $^bp(%=silencelist.nick) Silence: $^bp($^b(%=silencelist.mask)) }
alias ^silencelist.end {
  %:echo $^boxitemstart $^bp(%=silencelist.nick) $_nsingoplur(%=silencelist.t,silence,silences) found
  ^boxend + $null 40
}
alias ^silencelist.nosilences { %:echo $^*** $^bp(%=silencelist.nick) No silences found }
alias ^info.start { ^boxbegin +l $null 40 Info for %=info.server }
alias ^info { %:echo $^boxitemstart $iif($2- != $null,$2-) }
alias ^info.end { ^boxend +l $null 40 }
alias ^away { %:echo $^*** $^bp(%::nick) Away: %::reason }
alias ^seen.293 { return $1 $+ , $2 is on the channel right now! }
alias ^seen.294 { return $1 $+ , $2 is on $3 right now! }
alias ^seen.295 { return You found me, $1 $+ ! }
alias ^seen.296 { return $1 $+ , $2 is 'observing' this channel right now from my party line! }
alias ^seen.297 { return $1 $+ , $2 is linked to my partyline right now! }
alias ^seen.298 { return $1 $+ , $^seen.parse($1-) }
alias ^seen.299 { return $1 $+ , I found $_nsingoplur($numtok($3,44),match,matches) to your query: $3 $+ . $^seen.parse($1,$4,$5-) }
alias ^seen.580 { return Um, $1 $+ , it might help if you ask me about _someone_... }
alias ^seen.582 { return Looking for yourself, eh $1 $+ ? }
alias ^seen.615 { return $1 $+ , I don't remember seeing $2 }
alias ^seen.618 { return $1 $+ , Invalid mask: $2 }
alias ^seen.619 { return $1 $+ , I'm sorry, but wildcards ('?' or '*') are not allowed in a search. }
alias ^seen.620 { return $1 $+ , Please refine your wildcard ( $+ $2 $+ ) }
alias ^seen.621 { return $1 $+ , your search returned way too many matches. Please refine it. }
alias ^seen.622 { return $1 $+ , I found no matches to your query. }
alias ^seen.parse {
  tokenize 32 $1-
  var %pre,%msg,%from = $1,%nick = $2,%addy = $3,%where = $4,%code = $5,%ctime = $6,%dur = $7,%comment = $8-,%lastime = $__seen.last(%ctime),%chisonick = %nick,%spending
  if (%addy != $null) { %pre = %nick ( $+ $gettok(%addy,2,33) $+ ) was last seen }
  else { %pre = %nick was last seen }
  if (%code == 1) { %msg = joining %where %lastime $+ . }
  elseif (%code == 2) {
    if (%comment != $null) { %msg = parting %where %lastime stating " $+ %comment $+ " }
    else { %msg = parting %where %lastime $+ . }
  }
  elseif (%code == 3) {
    if (%where) { %msg = quitting from %where %lastime stating " $+ %comment $+ " }
    else { %msg = quitting %lastime stating " $+ %comment $+ " }
  }
  elseif (%code == 4) {
    if (%where) { %msg = changing his/her nick to %comment on %where %lastime $+ . }
    else { %msg = changing his/her nick to %comment %lastime $+ . }
    %chisonick = %comment
  }
  elseif (%code == 5) {
    if (%where) { %msg = changing his/her nick from %comment on %where %lastime $+ . }
    else { %msg = changing his/her nick from %comment %lastime $+ . }
  }
  elseif (%code == 6) { %msg = being kicked from %where by $gettok(%comment,1,32) ( $+ $gettok(%comment,2-,32) $+ ) %lastime }
  elseif (%code == 7) {
    if (%where) { %msg = splitting from %where %lastime $+ . }
    else { %msg = splitting %lastime $+ . }
  }
  elseif (%code == 8) { %msg = rejoining %where from a netsplit %lastime $+ . }
  else { %msg = $__seen.lastp(%where) %lastime $+ . }
  if (%chisonick ison %where) { %msg = %msg %chisonick is still there. }
  elseif ($comchan(%chisonick,1) != $null) { %msg = %msg %chisonick is on $ifmatch right now! }
  return %pre %msg
}
alias ^001 {
  ^boxbegin +l $colour(info) 40
  %:echo $colour(info) $^boxitemstart $2-
}
alias ^002 { %:echo $colour(info) $^boxitemstart $2- }
alias ^003 { %:echo $colour(info) $^boxitemstart $2- }
alias ^004 {
  %:echo $colour(info) $^boxitemstart $2-
  ^boxend +l $colour(info) 40
}
alias ^005 { %:echo $colour(info) $^*** $2- }
alias ^221 { %:echo $^*** $^bp($1) Usermode: $2- }
alias ^250 { %:echo $^*** $2- }
alias ^265 { %:echo $^*** $^n($2-) }
alias ^266 { %:echo $^*** $^n($2-) }
alias ^298 { %:echo $^*** $^bp($2) $3- }
alias ^305 {
  var %t = You are no longer marked as being away.
  if ($_isint(%=305.time)) { %t = %t Time gone: $_duration($calc($ctime - %=305.time)) }
  if (%=305.newpages) { %t = %t - You have $_nsingoplur(%=305.newpages,new page,new pages) ( $+ %=305.totalpages total) }
  if (%=305.eventslogged) { %t = %t - There $_singoplur(%=305.eventslogged,is,are) $_nsingoplur(%=305.eventslogged,logged event,logged events) $+ . $^'(/awaylog) to read $_singoplur(%=305.eventslogged,it,them) }
  %:echo $^*** %t
}
alias ^306 { %:echo $^*** You have been marked as being away: ( $+ %=306.reason $+ ) [L: $+ $iif(l isincs %=306.awayflags,on,off) $+ |P: $+ $iif(p isincs %=306.awayflags,on,off) $+ ] }
alias ^324 { %:echo $^*** $^bp($2) Modes: $3- }
alias ^328 { %:echo $^*** $^bp($2) Web: $3- }
alias ^329 { %:echo $^*** $^bp($2) Created: $_longdate($asctime($3)) }
alias ^331 { %:echo $^*** $^bp($2) No topic set }
alias ^332 { %:echo $^*** $^bp($2) Topic: ' $+ $3- $+ ' }
alias ^333 { %:echo $^*** $^bp($2) Topic set by $3 on $_date($asctime($4-)) }
alias ^341 { %:echo $^*** %=341.nick has been invited to %=341.chan }
alias ^351 { %:echo $^*** Version: $2- }
alias ^381 { %:echo $^*** $2- }
alias ^382 { %:echo $^*** Rehashing: $^b($2) }
alias ^391 { %:echo $^*** $^bp($2) Time: $3- }
alias ^433 {
  var %string
  if ($numeric) { %string = $2- - Press $_addfkey(o,600,whois [ $2 ] ) to whois or $_addfkey(o,600,orignick [ $2 ] ) to retake when available }
  else { %string = $2- }
  %:echo $^error(%string)
}
alias ^471 {
  var %string = $^bp($2) Cannot join channel: Channel is full (+l)
  %:echo $^error(%string)
}
alias ^473 {
  var %string = $^bp($2) Cannot join channel: Channel is invite only (+i)
  %:echo $^error(%string)
}
alias ^474 {
  var %string = $^bp($2) Cannot join channel: You are banned (+b)
  %:echo $^error(%string)
}
alias ^475 {
  var %string = $^bp($2) Cannot join channel: Password required (+k)
  %:echo $^error(%string)
}
;;
;
; -( Server Notices )-
;
;;
; $^snotice.default(server,line)
alias ^snotice.default { return $^sn* $2- }
; $^snotice.nickcollision.change(server,line,previous nick,nick,comment)
alias ^snotice.nickcollision.change { return $^sn* Nick change collision: $^b($3) to $^b($4) $5 }
; $^snotice.nickcollision.collision(server,line,killed,address,killer,comment)
alias ^snotice.nickcollision.collision { return $^sn* Nick collision: $^b($3) $iif($4 != $null,$^p($4)) $iif($5 != $null,killed by [ $5 ] ) $6 }
; $^snotice.kill.local(server,line,killed,address,killer,reason)
alias ^snotice.kill.local { return $^sn* Kill: $^b($3) $iif($4,$^p($4)) killed by $^b($5) $^c($6) }
; $^snotice.kill.remote(server,line,killed,address,killer,reason)
alias ^snotice.kill.remote { return $^sn* Kill: $^b($3) $iif($4,$^p($4)) killed by $^b($5) $^c($6) }
; $^snotice.ipmismatch(server,line,ip,parm)
alias ^snotice.ipmismatch { return $^sn* IP mismatch: $^b($3) doesn't match $4 }
; $^snotice.connectfailure(server,line,nick,address,comment)
alias ^snotice.connectfailure { return $^sn* Connect failure: $^b($3) $iif($4,$^p($4)) $iif($5,$^c($5)) }
; $^snotice.cannotacceptconnections(server,line,server,comment)
alias ^snotice.cannotacceptconnections { return $^sn* $^b($3) cannot accept connections $^p($4) }
; $^snotice.fake(server,line,nick,channel,modes,parms)
alias ^snotice.fake { return $^sn* Fake: $^b($3) MODE $^b($4) $5- }
; $^snotice.unauthorizedconnection(server,line,nick,address,host)
alias ^snotice.unauthorizedconnection { return $^sn* Unauthorized connection: $^b($3) $iif($4,$4,$5) }
; $^snotice.toomanyconnections.ip(server,line,nick,address,host)
alias ^snotice.toomanyconnections.ip { return $^sn* Too many connections from same IP for $^b($3) $^p($iif($4,$4,$5)) }
; $^snotice.toomanyconnections.class(server,line,nick,address,host)
alias ^snotice.toomanyconnections.class { return $^sn* Too many connections in class for $^b($3) $^p($iif($4,$4,$5)) }
; $^snotice.htm.forcedinit(server,line,nick,address)
alias ^snotice.htm.forcedinit { return $^sn* High-traffic: Entering, forced by $^b($3) $^p($4) }
; $^snotice.htm.forcedend(server,line,nick,address)
alias ^snotice.htm.forcedend { return $^sn* High-traffic: Resuming standard opereation forced by $^b($3) $^p($4) }
; $^snotice.htm.init(server,line,current,max,parms)
alias ^snotice.htm.init { return $^sn* High-traffic: Entering, $^p($5) }
; $^snotice.htm.still(server,line,counter,turbo,delay,current,parms)
alias ^snotice.htm.still { return $^sn* High-traffic: Still, $^p($7) }
; $^snotice.htm.end(server,line)
alias ^snotice.htm.end { return $^sn* High traffic: Resuming standard operation. }
; $^snotice.rehashconfigfile(server,line,nick)
alias ^snotice.rehashconfigfile { return $^sn* Rehash: $^b($3) is rehashing the server config file }
; $^snotice.kline.added(server,line,nick,address,reason)
alias ^snotice.kline.added { return $^sn* Kline: $^b($4) added by $^b($3) $iif($5 != $null,$^p($5)) }
; $^snotice.kline.tempadded(server,line,nick,address,reason)
alias ^snotice.kline.tempadded { return $^sn* Temp Kline: $^b($4) added by $^b($3) $iif($5 != $null,$^p($5)) }
; $^snotice.rejecting.bot(server,line,nick,bot type,comment)
alias ^snotice.rejecting.bot { return $^sn* Rejecting $4 $+ : $^b($3) $iif($5,$^p($5)) }
; $^snotice.oper.global(server,line,nick,address)
alias ^snotice.oper.global { return $^sn* Ircop: $^b($3) $^p($4) is now a global operator }
; $^snotice.oper.local(server,line,nick,address)
alias ^snotice.oper.local { return $^sn* Ircop: $^b($3) $^p($4) is now a local operator }
; $^snotice.squit.received(server,line,server1,server2,comment)
alias ^snotice.squit.received { return $^sn* Netsplit: $^b($3) <> $^b($4) - Received SQUIT $iif($5 != $null,$^p($5)) }
; $^snotice.squit.local(server,line,nick,server,comment)
alias ^snotice.squit.local { return $^sn* Netsplit: $^b($1) <> $^b($4) - Local SQUIT by $^b($3) $iif($5 != $null,$^p($5)) }
; $^snotice.squit.remote(server,line,nick,server,comment)
alias ^snotice.squit.remote { return $^sn* Netsplit: $^b($4) - Remote SQUIT by $^b($3) $iif($5 != $null,$^p($5)) }
; $^snotice.clientconnecting(server,line,nick,address,ip,class,port,comment)
alias ^snotice.clientconnecting {
  var %tmp
  if ($5 != $null) { %tmp = $5 }
  if ($7 != $null) { %tmp = %tmp $+ : $+ $7 }
  if (%tmp != $null) { %tmp = [[ $+ %tmp $+ ]] }
  return $^sn* Client connecting: $^b($3) $iif($4,$^p($4)) %tmp $iif($6,Class: [ $6 ] ) $iif($8,$^c($8))
}
; $^snotice.clientexiting(server,line,nick,address,ip,class,port,comment)
alias ^snotice.clientexiting {
  var %tmp
  if ($5 != $null) { %tmp = $5 }
  if ($7 != $null) { %tmp = %tmp $+ : $+ $7 }
  if (%tmp != $null) { %tmp = [[ $+ %tmp $+ ]] }
  return $^sn* Client exiting: $^b($3) $iif($4,$^p($4)) %tmp $iif($6,Class: [ $6 ] ) $iif($8,$^c($8))
}
; $^snotice.invalidusername(server,line,nick,address,host,comment)
alias ^snotice.invalidusername {
  var %tmp = $iif($4,$4,$5)
  return $^sn* Invalid Username: $^b($3) $iif(%tmp,$^p(%tmp)) $iif($6,$^c($6))
}
; $^snotice.statsrequested(server,line,nick,mode,address,comment)
alias ^snotice.statsrequested { return $^sn* STATS $^b($4) requested by $^b($3) $^p($5) $^c($6) }
; $^snotice.kline.active(server,line,nick,address,host)
alias ^snotice.kline.active {
  var %tmp = $iif($4,$4,$5)
  return $^sn* Kline: Active Kill line for $^b($3) $iif(%tmp,$^p(%tmp))
}
; $^snotice.netbreak(server,line,server1,server2,comment)
alias ^snotice.netbreak { return $^sn* Netsplit: $^b($3) <> $^b($4) $iif($5 != $null,$^p($5)) }
; $^snotice.link.cancelled(server,line,server,comment)
alias ^snotice.link.cancelled { return $^sn* Netsplit: $^b($3) - Link cancelled $iif($4 != $null,$^p($4)) }
; $^snotice.link.established(server,line,server,comment)
alias ^snotice.link.established { return $^sn* Netmerge: $^b($3) - Link established $iif($4 != $null,$^p($4)) }
; $^snotice.link.closing(server,line,server)
alias ^snotice.link.closing { return $^sn* Netsplit: $^b($1) <> $^b($3) - Write error }
; $^snotice.netjunction(server,line,server1,server2)
alias ^snotice.netjunction { return $^sn* Netmerge: $^b($3) >< $^b($4) }
; $^snotice.netburst.completed(server,line,server)
alias ^snotice.netburst.completed { return $^sn* Netmerge: $^b($3) - Net burst completed }
; $^snotice.netburst.ack(server,line,server)
alias ^snotice.netburst.ack { return $^sn* Netmerge: $^b($3) - Net burst acknowledged }
; $^snotice.gline.adding(server,line,nick,address,expire time,comment)
alias ^snotice.gline.adding { return $^sn* Gline: $^b($4) added by $^b($3) $iif($5,$^p(expires [ $asctime($5) ] )) $iif($6,$^c($6)) }
; $^snotice.gline.removing(server,line,nick,adress)
alias ^snotice.gline.removing { return $^sn* Gline: $^b($4) removed by $^b($3) }
; $^snotice.gline.resettingexp(server,line,nick,address,expire time)
alias ^snotice.gline.resettingexp { return $^sn* Gline: $^b($4) resetted by $^b($3) $^p(expires [ $asctime($5) ] ) }
; $^snotice.gline.active(server,line,nick,address,host)
alias ^snotice.gline.active {
  var %tmp = $iif($4,$4,$5)
  return $^sn* Gline: Active Gline for $^b($3) $iif(%tmp,$^p(%tmp))
}
; $^snotice.newmaxlocalclients(server,line,max)
alias ^snotice.newmaxlocalclients { return $^sn* New max local clients: $^b($3) }
; $^snotice.maximumconnections(server,line,maxcon,maxclient)
alias ^snotice.maximumconnections { return $^sn* Maximum connections: $^b($3) - $^b($4) clients }
; $^snotice.kline.removed(server,line,nick,address,matches)
alias ^snotice.kline.removed { return $^sn* Kline: $^b($3) removed $^b($5) $_singoplur($5,kline,klines) matching $^b($4) }
; $^snotice.cannotacceptonnections(server,line,server,comment)
alias ^snotice.cannotacceptonnections { return $^sn* $^b($3) cannot accept connections $^c($4) }
; $^snotice.whoisonyou(server,line,nick,address)
alias ^snotice.whoisonyou { return $^sn* $^b($3) $^p($4) is doing a whois on you }
; $^snotice.rehashSIGHUPconfigfile(server,line)
alias ^snotice.rehashSIGHUPconfigfile { return $^sn* Rehash: (SIGHUP) - rehashing the server config file }
; $^snotice.settime(server,line,nick,seconds,forward)
alias ^snotice.settime { return $^sn* Set time: $^b($3) sets clock $^b($4) $_singoplur($4,second,seconds) $iif($5,forwards,backwards) }
; $^snotice.bogusservername(server,line,server,host)
alias ^snotice.bogusservername { return $^sn* Bogus servername: $^b($3) $^p($4) }
; $^snotice.hack(server,line,HACK(#),who,command,parms)
alias ^snotice.hack { return $^sn* HACK $+ $^p($3) $+ : $^b($4) $^c($5-) }
; $^snotice.netride(server,line,channel,who)
alias ^snotice.netride { return return $^sn* HACK: NET.RIDE on opless $^b($3) from $^b($4) }