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.

Privmsg/mIRC

From ZNC
Revision as of 07:37, 27 November 2012 by >Rask (new page: mIRC script to allow Privmsg to work properly)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Add this to your mIRC remotes to move messages relayed by the Privmsg module to their proper windows:

on ^*:TEXT:*:?:{
    if ( $nick == $me ) {
        /query $gettok( $rawbytes, 3, 32 )
        /echo -tc "Normal text" $gettok( $rawbytes, 3, 32 ) < $+ $me $+ > $1-
        /haltdef
    }
}

on ^*:ACTION:*:?:{
    if ( $nick == $me ) {
        /query $gettok( $rawbytes, 3, 32 )
        /echo -tc "Action text" $gettok( $rawbytes, 3, 32 ) * $me $1-
        /haltdef
    }
}