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: Difference between revisions

From ZNC
Jump to navigation Jump to search
>Rask
m hotlinked Privmsg
KindOne (talk | contribs)
m Add category
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
  on ^*:TEXT:*:?:{
  on ^*:TEXT:*:?:{
     if ( $nick == $me ) {
     if ( $nick == $me ) {
         /query $gettok( $rawbytes, 3, 32 )
         query $gettok( $rawbytes, 3, 32 )
         /echo -tc "Normal text" $gettok( $rawbytes, 3, 32 ) < $+ $me $+ > $1-
         echo -tc "Normal text" $gettok( $rawbytes, 3, 32 ) < $+ $me $+ > $1-
         /haltdef
         haltdef
     }
     }
  }
  }
Line 11: Line 11:
  on ^*:ACTION:*:?:{
  on ^*:ACTION:*:?:{
     if ( $nick == $me ) {
     if ( $nick == $me ) {
         /query $gettok( $rawbytes, 3, 32 )
         query $gettok( $rawbytes, 3, 32 )
         /echo -tc "Action text" $gettok( $rawbytes, 3, 32 ) * $me $1-
         echo -tc "Action text" $gettok( $rawbytes, 3, 32 ) * $me $1-
         /haltdef
         haltdef
     }
     }
  }
  }
[[Category:Modules/Code]]

Latest revision as of 20:08, 23 July 2013

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
    }
}