Skip to content
TG007 community snippet #83

Stripstyle Forever

This snippet is for mIRC version 7.42 and up (Since on PARSELINE), mainly for socketless connections. These two lines will remove the STYLE text from any incoming message so you can focus your attention on other things while writing yo

By Winz Added Feb 17, 2019
General ircWx All snippets
mIRC script 2 lines
About this snippet

Overview

This snippet is for mIRC version 7.42 and up (Since on PARSELINE), mainly for socketless connections. These two lines will remove the STYLE text from any incoming message so you can focus your attention on other things while writing your code. Main purpose is to eliminate the hassle for on TEXT in needing to use the $stripstyle alias everywhere... A generic alias stripstyle is included in the snippet in case you don't have it yet. Shoutout to the person who came up with the $stripstyle alias!
Source code

mIRC script

2 lines · 173 characters
on *:PARSELINE:in:*PRIVMSG*: { .parseline -it $utfdecode($stripstyle($parseline)) | halt }
alias stripstyle { return $regsubex($1-, /\[(?:style\x20.*?|/style)\]/gi,$null) }
Community

Comments

Want to join the discussion? Sign in to TG007.
No comments yet. Start the discussion.