Top

/bremove - binvars


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  7.0
Scores Submitted  1
Date Added  Jul 23, 2008
Last Updated  Jul 23, 2008
Tags  alias  binary  binvar  bremove  command  remove  variable 
  Bookmark and Share

Introduction

This is just a simple alias to remove content from a binvar
Syntax: /bremove [-lrmt] <&binvar> (<X> [Y]|ascii values)
Switches:
l - basically simulates $left(text,X) removing X bytes from the 'left'; also use -X to remove X opposite bytes
r - again simulates $right(text,X)
m - simulates $mid(text,X,Y) removing Y bytes starting at position X
t - Indicates that X is treated as plain text and all occurrences of X are removed from the binvar (case insensitive)
if no switches are indicated then all occurrences of the ascii string are removed
NOTE:
/bremove -t &binvar 1 2 3 4 5 6 7 8 9
this example will remove all occurrences of the string '1 2 3 4 5 6 7 8 9' in the &binvar, as opposed to $remove(text,1,2,3,4,5,6,7,8,9) removing all numbers from the text

if you wanted to remove all digits you would need to repeat the command for every single digit
//tokenize 32 1 2 3 4 5 6 7 8 9 | bremove -t &binvar $*

Examples:

//bset -t &x 1 testing | bremove -l &x 3 | echo -a $bvar(&x,1-).text
echoes 'ting' removing left 3 from the binvar

//bset -t &x 1 testing | bremove -m &x 2 4 | echo -a $bvar(&x,1-).text
echoes 'tng' removing 4 bytes starting at the 2nd position

//bset -t &x 1 banana | bremove -t &x an | echo -a $bvar(&x,1-).text
echoes 'ba' removing all occurrences of 'an' in the binvar

//bset -t &x 1 its just a test | bremove &x 32 | echo -a $bvar(&x,1-).text
echoes 'itsjustatest' removing all occurrences $chr(32) in the binvar

Grab the Code

Comments

  (1)  RSS
BrAndo
Comments: 5
 
mIRC Snippet:  /bremove - binvars
Posted on Jul 28, 2008 8:50 pm
Thx for the feedback

Please Register or Login to start posting comments.
Bottom