Discussion:
/notice
(too old to reply)
Grumpy
2004-10-03 01:25:50 UTC
Permalink
Hi

Yet another very silly one,

I use the /notice often. I want an alias that I can just use /n, $1 picks up
the user nick, but what variable to I use for the rest of the text, if I use
$2 it only picks up one word after the nic

ie. /n dolly hello how are you

would come out at /notice dolly how

Any ideas

Thanks
Alan
Bianca
2004-10-03 16:09:15 UTC
Permalink
Post by Grumpy
Hi
Yet another very silly one,
I use the /notice often. I want an alias that I can just use /n, $1 picks up
the user nick, but what variable to I use for the rest of the text, if I use
$2 it only picks up one word after the nic
ie. /n dolly hello how are you
would come out at /notice dolly how
Any ideas
Thanks
Alan
Put this in popups nickname list (alt-p, view, nickname list):
Notice:/notice $$1 $$?="Notice Message"
The popup appears if you select the nick and do right mouse button

You can also put this in alias (alt-a):
/n /notice $snick(#,1) $2-
This you asked for, it send the notice to the nick selected in the nicklist
but beware there is no /n already in the list (/n /names #$$1 is standard
added, then change this to /na or something).

Another one is this, also in the alias section:
/nt /notice $1 $2-
Usage: /nt <nick> <message> (without the <> ofcourse).


Lesson 1:

Example: you type: word1 word2 word3
then:
$1 = word1
$2 = word2
$3 = word3

$1- = word1 word2 word3
$2- = word2 word3

Get the point?

Thats why you got only the first word of your message using $2 instead of
$2-.

Have fun.

Loading...