mIRC Home    About    Download    Register    News    Help

Print Thread
#59658 10/11/03 12:43 AM
Joined: May 2003
Posts: 3
B
Self-satisified door
OP Offline
Self-satisified door
B
Joined: May 2003
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....

#59659 10/11/03 06:20 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
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
#59660 15/11/03 07:33 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
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
#59661 16/11/03 01:27 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
You could just use "raw -q privmsg $1 : $+ $2-"
Just for interests sake, you could also use "privmsg $1-" with no "raw" nor ":" smile

#59662 16/11/03 01:32 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Well why not use /.msg anyway.. :tongue:


* cold edits his posts 24/7
#59663 16/11/03 01:35 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Well I agree, as I said, that was "Just for interests sake" grin

#59664 16/11/03 01:40 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
..Which was really interesting, I think I didn't know /privmsg was quiet by default. :tongue:


* cold edits his posts 24/7

Link Copied to Clipboard