mIRC Home    About    Download    Register    News    Help

Print Thread
#171071 18/02/07 09:20 PM
Joined: Oct 2003
Posts: 8
K
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: Oct 2003
Posts: 8
Hey everyone. I'm trying to write up a popup script for those ban extensions like ~n and ~q. I currently have it as:

.Nick Change Ban:/mode # +b ~n:*!*@$$1

But it does it as: * kevintheman sets mode: +b ~n:*!*@$$1

I must be doing something wrong since it's not interpeting the name right. What do I fix? Thanks in advance for the help.

Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
Code:
.Nick Change Ban:/mode # +b ~n:*!*@ $+ $$1

Should work as you are expecting. The '$+' identifier removes the space preceding and after the '$+'. Examples:
Code:
alias plustest {
  tokenize 32 Kard afol
  ; Sets $1 to 'Kard' and $2 to 'afol'.
  echo -a $!1 $!2: $1 $2
  echo -a $!1 $!+ $!2: $1 $+ $2
  echo -a Test $!+ $!2: Test $+ $2
}


Those who can, cannot. Those who cannot, can.

Link Copied to Clipboard