Discussion:
Useing replace
(too old to reply)
l***@gmail.com
2006-12-14 18:47:32 UTC
Permalink
Hey, I'm use to other languages like Perl that use " and ' to make
things more readable. I'm making a script that useing /names to view
people on a channel then responds to raw 352 saves the reply as %msg352
and then later I will loop through the names and ban them if there
address matches one from my channel. However I realized that 352 sends
back @ + % before the nicks, which causes trouble. So I put
$replace(%msg352,+,'') But that isnt working =( any ideas why? I've
gone through the script and I'm sure this is the lien the error is at.
voipme
2006-12-15 12:34:15 UTC
Permalink
You need to use $chr(). For +, use $chr(43) and for ", use $chr(34).
That should be right, if not, then experiment in order to find out the
right ones to use.
Post by l***@gmail.com
Hey, I'm use to other languages like Perl that use " and ' to make
things more readable. I'm making a script that useing /names to view
people on a channel then responds to raw 352 saves the reply as %msg352
and then later I will loop through the names and ban them if there
address matches one from my channel. However I realized that 352 sends
$replace(%msg352,+,'') But that isnt working =( any ideas why? I've
gone through the script and I'm sure this is the lien the error is at.
l***@gmail.com
2006-12-15 15:00:27 UTC
Permalink
Thanks voipme, works great, '' was actually ' then another ' however,
hence null. But $chr(0) takes care of that.

Thanks again.
Post by voipme
You need to use $chr(). For +, use $chr(43) and for ", use $chr(34).
That should be right, if not, then experiment in order to find out the
right ones to use.
Post by l***@gmail.com
Hey, I'm use to other languages like Perl that use " and ' to make
things more readable. I'm making a script that useing /names to view
people on a channel then responds to raw 352 saves the reply as %msg352
and then later I will loop through the names and ban them if there
address matches one from my channel. However I realized that 352 sends
$replace(%msg352,+,'') But that isnt working =( any ideas why? I've
gone through the script and I'm sure this is the lien the error is at.
l***@gmail.com
2006-12-15 16:13:54 UTC
Permalink
Thanks voipme, works great, '' was actually ' then another ' however,
hence null. But $chr(0) takes care of that.

Thanks again.
Post by voipme
You need to use $chr(). For +, use $chr(43) and for ", use $chr(34).
That should be right, if not, then experiment in order to find out the
right ones to use.
Post by l***@gmail.com
Hey, I'm use to other languages like Perl that use " and ' to make
things more readable. I'm making a script that useing /names to view
people on a channel then responds to raw 352 saves the reply as %msg352
and then later I will loop through the names and ban them if there
address matches one from my channel. However I realized that 352 sends
$replace(%msg352,+,'') But that isnt working =( any ideas why? I've
gone through the script and I'm sure this is the lien the error is at.
l***@gmail.com
2006-12-15 16:47:05 UTC
Permalink
Thanks voipme, works great, '' was actually ' then another ' however,
hence null. But $chr(0) takes care of that.

Thanks again.
Post by voipme
You need to use $chr(). For +, use $chr(43) and for ", use $chr(34).
That should be right, if not, then experiment in order to find out the
right ones to use.
Post by l***@gmail.com
Hey, I'm use to other languages like Perl that use " and ' to make
things more readable. I'm making a script that useing /names to view
people on a channel then responds to raw 352 saves the reply as %msg352
and then later I will loop through the names and ban them if there
address matches one from my channel. However I realized that 352 sends
$replace(%msg352,+,'') But that isnt working =( any ideas why? I've
gone through the script and I'm sure this is the lien the error is at.
Loading...