mIRC Homepage
Posted By: Blood_Wolf89 replace space with + - 01/04/15 07:02 AM
I am making a script for when people are too lazy to look something up a mod can type !google and what ever the question is and the output would link them a funny google page.

Example: !google mirc replace space with plus

Output: http://lmgtfy.com/?q=mirc+replace+space+with+plus

Here is my code:
Code:
on *:TEXT:!google *:#: { msg # Let me google that for you... http://lmgtfy.com/?q= $+ $replace($2-,  , +)  }
Posted By: Nillen Re: replace space with + - 01/04/15 07:12 AM
$chr(32) refers to space. You can check out these over at http://www.asciitable.com/
Posted By: Keydosed Re: replace space with + - 05/04/15 11:13 PM
Code:
on *:TEXT:!google *:#: { 
  msg # Let me google that for you... http://lmgtfy.com/?q= $+     $replace($2-, $chr(32), +)
}
© mIRC Discussion Forums