mIRC Home    About    Download    Register    News    Help

Active Threads | Unanswered Past 24 hours | Past 48 hours | Past Week | Past Month | Past Year
Bug Reports Jump to new posts
Re: Unset WildCard messes up the variables favellado 26/04/24 03:32 PM
Just one more question:
The image I sent from the variable editor does not match the script for sending messages to Telegram. That seems to be in another issue in my other script as I reported here about the breplace issue. Unless one interferes with the other in some way.
9 301 Read More
Bug Reports Jump to new posts
Re: Unset WildCard messes up the variables favellado 26/04/24 03:23 PM
When you talked about %var not accepting $crlf I thought about everything and saw that I have a script that sends messages to the Telegram api and I was putting %link = txt1 $crlf text2 in a var...
I made the change by making $urlencode(text) with the $crfl embedded before entering the %Link var to avoid the issue.
Let's see if that was the case in my case.
9 301 Read More
Bug Reports Jump to new posts
Re: Unset WildCard messes up the variables Khaled 26/04/24 02:59 PM
Okay, if you find a way of reproducing the issue, please let us know.

Note that you would need to provide a short, simple script, of a few lines, that we can use to reproduce the issue you are reporting. For example, here are the steps I would follow before posting a bug report:

1) Install a clean copy of mIRC, using the portable option in the installer, into a new empty folder.
2) Run this new copy of mIRC with no other scripts or addons.
3) In the scripts editor, add the following alias:

Code
; This script creates a list of variables and then uses /unset with wildcards
test {
  unsetall
  var %x 0
  while (%x < 100) {
    set -s % [ $+ [ $+(%x,test,%x) ] ] %x
    inc %x
  }
  unset -s %*2test2*
  unset -s %*3test4*
  unset -s %*4test3*
}

4) Test the script to make sure it reproduces the issue.
5) Post the bug report on the forums with the working script that anyone can type into mIRC to reproduce the same issue.
9 301 Read More
Bug Reports Jump to new posts
Re: Unset WildCard messes up the variables favellado 26/04/24 02:34 PM
In the ON SOCKREAD event I use:

breplace &bin 13 32 10 32 12 32 9 32 11 32
%s [ $+ [ $sockname ] ] = $bvar(&bin,1,$sockbr).text

Only if at some point the replacement doesn't work.
9 301 Read More
Bug Reports Jump to new posts
Re: Unset WildCard messes up the variables Khaled 26/04/24 02:16 PM
That is why I asked for a script that 1) Creates a list of variables. I already tested /unset, including your above alias, and cannot reproduce any issues with the list of variables that I have.

Looking at the image you provided, it looks like you may be using /set with text that contains $cr and/or $lf characters? You cannot do this since /set does not support that. You should store these types of lines either in binary variables, in files, or encoded in some way.
9 301 Read More
Bug Reports Jump to new posts
Re: Unset WildCard messes up the variables favellado 26/04/24 01:03 PM
The command used is the one above. It's a routine that is used from time to time and at some point the variable editor gets weird like in the image posted. That's why I said that after the command, things got strange and I couldn't say why. That's why I brought the question to the forum.
9 301 Read More
Bug Reports Jump to new posts
Re: Unset WildCard messes up the variables Khaled 26/04/24 11:59 AM
Thanks for your reply. I have still not been able to reproduce this issue.

Can you please provide a short script that:

Quote
1) Creates a list of variables
2) Makes one call to /unset with wildcards that reproduces your issue?

Without the above, I will be unable to reproduce your issue.
9 301 Read More
Scripts & Popups Jump to new posts
Re: how to check each nick in $1- is in channel Simo 25/04/24 10:24 PM
Found a way to use 1 loop and it seems to work as expected makes the code smaller too 👍
7 986 Read More
Bug Reports Jump to new posts
Re: Unset WildCard messes up the variables favellado 25/04/24 03:50 PM
I created this alias and noticed that the variables screen looks strange after a while, as shown in the attached image.

alias noticias.unset.num {
var %t $1
while (%t >= 0) {
unset % [ $+ [ $+(*?,news.,%t,*) ] ] % [ $+ [ $+(news.,%t,.*) ] ] $&
% [ $+ [ $+(*?,narracao.placar.,%t,*) ] ] % [ $+ [ $+(narracao.placar.,%t,.*) ] ]
dec %t
}
}

[Linked Image from henriquepb.000webhostapp.com]
9 301 Read More
Scripts & Popups Jump to new posts
Re: VOICE on JOIN Fernet 25/04/24 12:33 PM
It perfecty works sir. Really thanks a lot and all my best for You wink
P.S.: I stil didn't get about raw XXX rule... I need to study more
Thanks again
3 242 Read More
Bug Reports Jump to new posts
Re: Unset WildCard messes up the variables Khaled 25/04/24 06:00 AM
Thanks for your bug report. I have not been able to reproduce an issue with this so far. Can you provide a short script that 1) creates a list of variables, and 2) makes one call to /unset with wildcards that reproduces your issue?
9 301 Read More
Bug Reports Jump to new posts
Unset WildCard messes up the variables favellado 24/04/24 04:31 PM
If you use the unset command in the following way with wildcards at the beginning and end:

unset % [ $+ [ $+(*,NAME,*) ] ]

It messes up the variables in general. I don't know what exactly happens.

If it is a Wildcard only at the end like below:
unset % [ $+ [ $+(NAME,*) ] ]

It works normally, but with Joker at the beginning the variables get strange and messy.

I tried to make an alias by passing a standard name like $1 and what was reported above happened. The idea was to delete everything with the suggested name.
9 301 Read More
Scripts & Popups Jump to new posts
IRCClouD BanMask Corrector Simo 24/04/24 05:21 AM
i wrote this small script for dalnet as i found many set inneffiecient bans on irccloud users this code will correct that provided your bot is opped in the channel :

Code

on *:ban:#:{
  if ($nick(#,$me,@)) {
    var %ixz = 1 , %nicksx
    while ($ialchan($banmask,$chan,%ixz).nick)  {
      var %match = $v1
      if (%match != $me && $regex($banmask,/(irccloud)/i)) { var %nicksx = $addtok(%nicksx,%match,32)  }
      inc %ixz
    }
    if ($numtok(%nicksx,32) > 1) { mode $chan -b $banmask }
    if ($numtok(%nicksx,32) == 1) {
      var %properbanmask $+(*!,$gettok($gettok($replace($address(%nicksx,1),!*uid,!*id,!*sid,!*id),1,64),2,33),@*)
      mode $chan +b-b %properbanmask $banmask
    }
  }
}
 
 
on *:KICK:# {
  if ($nick(#,$me,@)) {
    if ($regex($address($knick,2),/(irccloud)/i)) {
      var %properbanmask $+(*!,$gettok($gettok($replace($address($knick,1),!*uid,!*id,!*sid,!*id),1,64),2,33),@*)
      if ( %properbanmask !isban $chan ) {   mode $chan +b %properbanmask }
    }
  }
}
 

0 72 Read More
Scripts & Popups Jump to new posts
Re: VOICE on JOIN KindOne 23/04/24 06:05 PM
It looks like you would need to /whois the person when they join the channel in order to get their login status.

Could try this script:

Code
on *:join:#Alessandra:{
  if ($network == MindForge) {
    if (MindUser* iswm $nick) { return }
    whois $nick
  }
}
; User is logged in, +v them.
; :Unixverse.MindForge.org 330 TestNick KindOne KindOne :is logged in as
raw 330:*:{
  if ($network == MindForge) {
    if ($2 ison #Alessandra) { mode #Alessandra +v $2 }
  } 
}
3 242 Read More
Scripts & Popups Jump to new posts
Re: VOICE on JOIN Fernet 21/04/24 08:35 AM
Originally Posted by Fernet
Hello. I'd like to have an addon that give a temporary voice (+v) on join in a channel (i.e.: #test), but only if that nick is registered and identified on the net (MindForge).
Thanks

I mean something like:
Code
on *:JOIN:#Alessandra: {
  if (MindUser* iswm $nick) {return}
  if ($nick == NOT REGISTERED or IDENTIFIED) { return }
  if ($nick == REGISTERED or IDENTIFIED) { mode # +v $nick }
}
3 242 Read More