mIRC Home    About    Download    Register    News    Help

Print Thread
#152720 05/07/06 12:02 AM
Joined: Jun 2006
Posts: 58
S
sas22 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Jun 2006
Posts: 58
Ok I need an alias than will let me use 2 / when I only use 1 /
For instance: /mode $me -x It would be //mode $me -x...
Is there a way to use 2 / with just 1 / for an alias

#152721 05/07/06 12:18 AM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
you mean like:

/aliasname //me says $1-

for your example, yes, you can do this (as an example):

/xn //mode $me -x

and that would work


Those who fail history are doomed to repeat it
#152722 05/07/06 12:22 AM
Joined: Jun 2006
Posts: 58
S
sas22 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Jun 2006
Posts: 58
Uhh no... When I start a command For example /mode nick +g It would be //mode nick +g in return.. So basiclly when I start a command with a
/ it will turn out with 2 / in it.

#152723 05/07/06 12:25 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
I think what he's asking for is something more like

Code:
on *:INPUT:*:{
  if (/* iswm $1) && (!$ctrlenter) {
    haltdef
    $($1-,2)
  }
}


Put that in remotes (Alt + R -> File -> New).

#152724 05/07/06 12:27 AM
Joined: Jun 2006
Posts: 58
S
sas22 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Jun 2006
Posts: 58
Nope didnt work..
I typed /mode $me -x I want it to return with 2 / in the beginning

#152725 05/07/06 12:29 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
You want it to show the command with 2 / or you want it to execute with 2 / ? I read it as you wanted it to execute, which is what that will do. / are not needed in remote scripts by the way.

#152726 05/07/06 12:30 AM
Joined: Jun 2006
Posts: 58
S
sas22 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Jun 2006
Posts: 58
Yeah to exacute with 2 /

#152727 05/07/06 12:32 AM
Joined: Jul 2006
Posts: 4
K
Self-satisified door
Offline
Self-satisified door
K
Joined: Jul 2006
Posts: 4
He means that if he enters:

/mode $me -x

that it executes as:

//mode $me -x

So that he doesn't have to type that extra slash. =/

#152728 05/07/06 12:33 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Well, the code above will do what you're asking. Did you by chance not save the file after pasting? Either File -> Save or just click Ok. Or you might have some other script interfering with it.

#152729 05/07/06 12:33 AM
Joined: Jun 2006
Posts: 58
S
sas22 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Jun 2006
Posts: 58
Quote:
He means that if he enters:

/mode $me -x

that it executes as:

//mode $me -x

So that he doesn't have to type that extra slash. =/

Yup =)

#152730 05/07/06 12:34 AM
Joined: Jun 2006
Posts: 58
S
sas22 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Jun 2006
Posts: 58
Quote:
Well, the code above will do what you're asking. Did you by chance not save the file after pasting? Either File -> Save or just click Ok. Or you might have some other script interfering with it.

Eh no it just didnt work

#152731 05/07/06 12:36 AM
Joined: Jun 2006
Posts: 58
S
sas22 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Jun 2006
Posts: 58
Quote:
Quote:
Well, the code above will do what you're asking. Did you by chance not save the file after pasting? Either File -> Save or just click Ok. Or you might have some other script interfering with it.

Eh no it just didnt work

nvm it worked


Link Copied to Clipboard