mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2016
Posts: 50
T
TUSK3N Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Mar 2016
Posts: 50
Hello I would like to include spaces before my msg because twitch will otherwise say its identical to the prev message.

Code:
on *:text:*hello*:#: {
  if (%flood) { return }
  set -u4 %flood On
  msg $chan (space)(space)hi $nick
}


But it will automaticly remove the spaces
msg $chan hi $nick

How do I make it so the spaces will also send?

Joined: Feb 2011
Posts: 448
K
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 448
You could use spaces.dll that can be found here http://www.xise.nl/mirc/ . You will need to download a new version every time you upgrade mIRC. I just put the .dll in the same folder as mirc.exe. Make sure you read the README.txt.

Example:
Code:
on *:text:*hello*:#: {
  if (%flood) { return }
  set -u4 %flood On
  $dll(spaces.dll, send, PRIVMSG $target : $+ $chr(32) $+ $chr(32) $+ hi)
  $dll(spaces.dll, echo, -aitc own $+(<,$me,>) $chr(32) $+ $chr(32) $+ hi)
}


Code:
[00:14:16] <KindOne> hello
[00:14:16] <SomeBot>   hi


http://www.xise.nl/mirc/wiki/doku.php/doku.php?id=spaces
http://www.xise.nl/mirc/wiki/doku.php?id=spacealt

Joined: Dec 2015
Posts: 148
Vogon poet
Offline
Vogon poet
Joined: Dec 2015
Posts: 148
Another option:
Code:
on *:text:*hello*:#: {
  if (%flood) { return }
  set -u4 %flood On
  msg $chan $chr(160) hi $nick
}

160 is a non-breaking space, and it doesn't get stripped away, so effectively there's one special space and one normal space, which results in double space.

You don't necessarily have to use the $chr identifier, you could just put those non-breaking spaces there manually: //clipboard $chr(160) and paste away!

Joined: Mar 2016
Posts: 50
T
TUSK3N Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Mar 2016
Posts: 50
thank you very much, your solution seemed easier thanks smile


Link Copied to Clipboard