mIRC Home    About    Download    Register    News    Help

Topic Options
#59658 - 10/11/03 12:43 AM Changing the IRC Outputs
BoardMasta Offline
Self-satisified door

Registered: 08/05/03
Posts: 3
I have a custom output for irc text and I have bugs in it. I finally figured out how to eliminate some of the bugs but now it eliminates spaces from the messages I send. Also in the raw command I'm forced to put a space in order to have identifiers work.
Code:
on *:input:#: {
  if ($left($1, 1) == /) && ($ctrlenter == $false) return
  msg $active $1-
}

alias msg {
  echo $1 $form.selftext($1, $2-)
 raw -q privmsg $1 : $2-
}
alias form.selftext return $timestamp 04 $+ $chr(91) $+  $+ $Access($me, $active) $+  $+ $me $+ 04 $+ $chr(93) $+  $2-


I know theres some easy way I'm missing but I dont see it right now....

Top
#59659 - 10/11/03 06:20 AM Re: Changing the IRC Outputs
LocutusofBorg Offline
Hoopy frood

Registered: 23/03/03
Posts: 1271
Loc: Sunnydale, CA
Identifiers must always be surrounded by spaces (unless they are arguments for other identifiers). To remove spaces, you can add a $+ where the space appears (since this is an identifier, also surrounded by spaces, eg test $+ one returns testone). You also might wanna add a halt at the end of your on input event.
_________________________
DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius

Top
#59660 - 15/11/03 07:33 PM Re: Changing the IRC Outputs
cold Offline
Hoopy frood

Registered: 25/02/03
Posts: 810
Loc: Brazil
You could just use "raw -q privmsg $1 : [color:red]$+ $2-[/color]", but you don't need the /raw command there. Simply use /msg quietly - "[color:red].msg $1-[/color]" (it will work inside your aliased /msg).

About mIRC stripping consecutive spaces that you send, there's nothing you can do about that, since it's its parsing method (a.k.a. limitation) to handle the given parameters. Everytime you use a /command (ie. /msg), mIRC will strip the consecutive spaces.
_________________________
* cold edits his posts 24/7

Top
#59661 - 16/11/03 01:27 AM Re: Changing the IRC Outputs
Iori Offline
Hoopy frood

Registered: 30/08/03
Posts: 1831
You could just use "raw -q privmsg $1 : $+ $2-"
Just for interests sake, you could also use "privmsg $1-" with no "raw" nor ":" smile

Top
#59662 - 16/11/03 01:32 AM Re: Changing the IRC Outputs
cold Offline
Hoopy frood

Registered: 25/02/03
Posts: 810
Loc: Brazil
Well why not use /.msg anyway.. :tongue:
_________________________
* cold edits his posts 24/7

Top
#59663 - 16/11/03 01:35 AM Re: Changing the IRC Outputs
Iori Offline
Hoopy frood

Registered: 30/08/03
Posts: 1831
Well I agree, as I said, that was "Just for interests sake" grin

Top
#59664 - 16/11/03 01:40 AM Re: Changing the IRC Outputs
cold Offline
Hoopy frood

Registered: 25/02/03
Posts: 810
Loc: Brazil
..Which was really interesting, I think I didn't know /privmsg was quiet by default. :tongue:
_________________________
* cold edits his posts 24/7

Top