mIRC Homepage
Posted By: pheonix annoying spammers - 15/06/03 01:28 PM
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
Posted By: codemastr Re: annoying spammers - 15/06/03 04:18 PM
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
Posted By: pheonix Re: annoying spammers - 15/06/03 04:20 PM
cheers smile
© mIRC Discussion Forums