mIRC Home    About    Download    Register    News    Help

Print Thread
P
pcnxy
pcnxy
P
i've seen someone in IRC talk in something like this

Guy A: Yo [[>>Guy B<<]] how are you?
Guy B: fine thanks.

whats that script?i heard its a nick styler

Joined: Jan 2007
Posts: 1,155
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,155
Who is saying what? Is one of those nicks a mirc script?

Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
From what was said, I think the requester is asking for a script that will automatically put the [[<< >>]] around the nick when stated.

If this is the case, then the script will need to use an ON INPUT event and check each word entered to see if it matches a nick on the channel.

Joined: Aug 2010
Posts: 134
T
Vogon poet
Offline
Vogon poet
T
Joined: Aug 2010
Posts: 134
Which brings the disadvantage of killing spaces and what not. :P

Code:
on *:input:#: {
  if !$ctrlenter && $left($1, 1) != / && left($1, 1) != $readini($mircini, text, commandchar) {
    var %message $null
    var %count 0
    while %count < $0 {
      var %count $calc(%count + 1)
      var %parameter $ [ $+ [ %count ] ]
      if %parameter ison $chan {
        var %message %message $+($chr(91), $chr(91), <<, %parameter, >>, $chr(93), $chr(93))
      }
      else {
        var %message %message %parameter
      }
    }
    say %message
    haltdef
  }
}


Link Copied to Clipboard