- alias -l config {
- ; Mandatory settings
- var %TIMESTAMP_PATTERN = ^\[(\d\d:\d\d:\d\d)\].*$
- var %PLAYBACK_BEGIN = Buffer Playback...
- var %PLAYBACK_END = Playback Complete.
- var %VARIABLE_PREFIX = gbuffer
- ; Optional settings
- ; Indent wrapped lines
- var %INDENT_LINES = $false
- ; Add the mode prefix to the nick (if possible)
- var %PREFIX_NICKS = $false
- ; Are there other ON TEXT processors in place?
- var %EXTERNAL_RENDERER = $true
- ; Possible values are NORMAL/LINESEP/NONE
- ; Make use of space-preserving spaces.dll
- var %USE_SPACES_DLL = $false
- return $eval( $+( %, $1 ), 2 )
- }
- alias -l makeNick {
- return %nick
- }
- alias -l handleMessage {
- var %chan = $1
- var %pattern = $4
- var %text = $5
- ; Buffered input
- if ( $true == $eval( $+( %, $config( VARIABLE_PREFIX ), ., $cid, ., %chan, ., playback ), 2 ) ) {
- var %params
- if ( 0 != $len( %params ) ) %params = $+( -, %params )
- if ( $true == $config( USE_SPACES_DLL ) ) {
- var %result
- }
- else {
- }
- }
- else {
- ; Current events (optional)
- if ( $true == $config( EXTERNAL_RENDERER ) ) return $false
- if ( $true == $config( USE_SPACES_DLL ) ) {
- var %result
- }
- else {
- }
- }
- return $true
- }
- on ^*:text:*:#:{
- ; Handle savebuff output
- if ( $nick == *savebuff ) {
- }
- ; Handle playback state notifications
- elseif ( $nick == *** ) {
- if ( $1- == $config( PLAYBACK_BEGIN ) ) {
- set -e $+( %, $config( VARIABLE_PREFIX ), ., $cid, ., $chan, ., playback ) $true
- }
- elseif ( $1- == $config( PLAYBACK_END ) ) {
- unset $eval( $+( %, $config( VARIABLE_PREFIX ), ., $cid, ., $chan, ., playback ), 1 )
- }
- if ( $config( STATUS_DISPLAY ) == NORMAL ) {
- }
- linesep $chan
- }
- halt
- }
- ; Handle usual input
- else {
- var %pattern = ^:.*? :(.*)$
- if ( $false == $handleMessage( $chan, $nick, normal, $+(<,$nick($chan, $nick).color,&NICK&,>) &TEXT&, $regml( 1 ) ) ) return
- }
- halt
- }
- on ^*:action:*:#:{
- ;noop $dll( spaces.dll, echo, $chan $rawmsg )
- var %pattern = ^:.*? :\x01ACTION (.*)\x01$
- }
- on ^*:notice:*:#:{
- ;noop $dll( spaces.dll, echo, $chan $rawmsg )
- var %pattern = ^:.*? :(.*)$
- }
ZNC mIRC Buffer
Posted by Admin on Sun 7th Mar 2010 10:40
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.