mIRC Home    About    Download    Register    News    Help

Print Thread
#29889 15/06/03 01:28 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i was wondering is there a way to reverse the text of nicks on a certain level, because recently spammers have come into my channel and when they type on input it reverses the text, so it makes no sense, i was wondering if anyone can help me make a script to echo the reversed text normal again?
thanx in advance smile


new username: tidy_trax
#29890 15/06/03 04:18 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well I don't believe mIRC has any builtin way to reverse text, but making an alias to do so is pretty easy:

Code:
alias reverse {
  var %txt
  var %i = 1
  while (%i <= $len($1-)) {
    %txt = $mid($1-,%i,1) $+ %txt
    inc %i
  }
  return %txt
}


$reverse(this is a test) = tset a si siht
$reverse(tset a si siht) = this is a test

#29891 15/06/03 04:20 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
cheers smile


new username: tidy_trax

Link Copied to Clipboard