Re: RPL_WHOISACTUALLY bug on InspIRCd
Khaled
Yesterday at 01:09 PM
Thanks for debug log. The change I made above has indeed resolved the issue.
That said, I notice that InspIRCd is using numeric 344 in the whois reply. This numeric is used as a MODE reply on some ircds, which is how mIRC has always parsed it. I have added a change so that numeric 344 is now treated as a whois reply if it contains a specific number of parameters/content. InspIRCd actually has two formats for numeric 344, one for InspIRCd 2.0 and one for InpsIRCd 3.0, so mIRC has to handle both.
These changes will be in the next beta.
5
98
Read More
|
|
Re: Trying to find specific text
Epic
04/06/23 02:55 PM
Try use this script code that creates the identifier " $fsub" you need:
alias fsub {
if ($4 isnum && $3 isnum && $3 > 0 && $3 <= $pos($1,$2,0)) {
if ($4 > 0) var %pos $calc($pos($1,$2,$3) + $len($2))
if ($4 < 0) var %p $pos($1,$2,$3), %pos $calc(%p $4)
if (%p && %pos < 1) return $left($1,$calc(%p -1))
if (%pos <= $len($1)) return $mid($1,%pos,$abs($4))
} | return 0
}
Syntax: $fsub(string, substring, index N, letters N)Example: $fsub(helloworld, llo, 1, 5)Test commands:
//echo -a $fsub(AnApplicationCanBeUsedToFindContinuationOfData,CanBe,1,4)
//echo -a $fsub(AnApplicationCanBeUsedToFindContinuationOfData,tion,2,5)
//echo -a $fsub(AnApplicationCanBeUsedToFindContinuationOfData,tion,2,-5)
Returns: - Used
- OfDat
- tinua
Note: In all other cases, when incorrect or invalid values are used in the parameters, the identifier will return the number " 0".
1
67
Read More
|
|
mIRC beta
Khaled
03/06/23 03:38 PM
The latest beta can be downloaded here and includes the following changes: Beta v7.72.3512 changes: 1.Item 31, added. 2.Item 32, fixed https://forums.mirc.com/ubbthreads.php/topics/2716423.Item 33, fixed https://forums.mirc.com/ubbthreads.php/topics/2716744.Item 34, changed https://forums.mirc.com/ubbthreads.php/topics/2716245.Item 2, fixed $isbit(). 6.Item 35, fixed https://forums.mirc.com/ubbthreads.php/topics/2717227.Item 36, fixed https://forums.mirc.com/ubbthreads.php/topics/2717238.Item 37, fixed. Beta v7.72.2435 changes: 1.Item 11, https://forums.mirc.com/ubbthreads.php/topics/2715782.Item 30, fixed. Beta v7.72.2408 changes: 1.Item 26, https://forums.mirc.com/ubbthreads.php/topics/2715602.Item 15, https://forums.mirc.com/ubbthreads.php/topics/271569Beta v7.72.2363 changes: 1.Item 24, https://forums.mirc.com/ubbthreads.php/topics/2715592.Item 25, https://forums.mirc.com/ubbthreads.php/topics/2715613.Item 26, https://forums.mirc.com/ubbthreads.php/topics/2715624.Item 27, https://ircv3.net/specs/extensions/standard-replies5.Item 28, https://forums.mirc.com/ubbthreads.php/topics/2713616.Item 29, https://forums.mirc.com/ubbthreads.php/topics/270860Beta v7.72.2230 changes: 1.Item 21, added. 2.Item 22, https://forums.mirc.com/ubbthreads.php/topics/2715173.Item 23, https://forums.mirc.com/ubbthreads.php/topics/270858Beta v7.72.2068 changes: 1.Item 14, extended. 2.Item 19, https://forums.mirc.com/ubbthreads.php/topics/2714973.Item 20, added. Dithering uses Floyd-Steinberg. Quantization uses Octree. These are slow as they work per pixel. They have been added to improve the results of -b 1/4/8 but are optional switches to maintain backward compatibility. 4.Item 17, changed. Removed prefix and padding. Note that this means the result can now begin with $ or %, which are in the base85 alphabet. Beta v7.72.1339 changes: 1.Item 10, removed. 2.Item 11, updated. Required minor changes to SSL code. 3.Item 12, https://forums.mirc.com/ubbthreads.php/topics/2714544.Item 13, https://forums.mirc.com/ubbthreads.php/topics/2714595.Item 14, https://forums.mirc.com/ubbthreads.php/topics/2709896.Item 15, https://forums.mirc.com/ubbthreads.php/topics/2713037.Item 16, https://forums.mirc.com/ubbthreads.php/topics/2712518.Item 17, added. 9.Item 18, changed. Beta v7.72.302 changes: 1.Item 5, https://forums.mirc.com/ubbthreads.php/topics/2712202.item 7, https://forums.mirc.com/ubbthreads.php/topics/2712443.Item 8, https://forums.mirc.com/ubbthreads.php/topics/2712574.Item 9, fixed. Beta v7.72.171 changes: 1.Item 5, https://forums.mirc.com/ubbthreads.php/topics/2712202.Item 6, updated. Beta v7.72.135 changes: 1.Item 1, https://forums.mirc.com/ubbthreads.php/topics/2710982.Item 2, https://forums.mirc.com/ubbthreads.php/topics/2711053.Item 3, https://forums.mirc.com/ubbthreads.php/topics/2711174.Item 4, https://forums.mirc.com/ubbthreads.php/topics/271154Changes: 1.Fixed $bvar() gpf bug with negative ranges. 2.Changed bitwise identifiers in bigfloat mode so that, by default, they work in the same way as in non-bigfloat mode, for backward compatibility. To make them handle larger values, you can now specify a bit size parameter. 3.Fixed channels list not showing non-text prefixed channel names. 4.Changed how the keep channels open settings in IRC options work so that they apply in different numeric events as well. 5.Fixed $modinv() /$powmod() gpf bug relating to large values. 6.Updated CA root certificates cacert.pem file. 7.Fixed /debug custom command not working with local aliases. 8.Fixed custom dialog icon not handling spaces in quotes. 9.Fixed /cnick auto-color as * parameter bug. 10.Removed tray tip warning on startup due latest version of Windows 11 no longer supporting this. 11.Updated OpenSSL library to v3.0.8. 12.Optimized $bvar(&binvar,N,M) to use faster method. 13.Extended SASL authentication to support IRCv3 >=400 byte base64 chunks. 14.Added /drawsave -v[pgj] switch to save bitmap to &binvar in different formats. Note that the -b switch converts the bitmap before saving in all contexts now. 15.Extended $scon()/$scid() to support -1 for active connection. 16.Extended $unsafe() to allow $null values. 17.Added $encode()/$decode() 'v' switch to support Z85 encoding. 18.Changed Find dialog in Scripts Editor to work in the same way as most applications. Added case sensitive and whole word match options. 19.Changed $hfind() with 0 index and /halt to return count. 20.Added /drawsave -du switches, where -d dithers and -u quantizes, for use with the -b switch. 21.Added /drawpic -v switch that loads a picture from a &binvar instead of a filename. 22.Fixed editbox eye icon password display bug. 23.Fixed while/if script parser bugs. 24.Fixed $urlget() only sending &binvar body data up to the first NULL value. 25.Fixed $input() with 'u' option not using active window in some contexts. 26.Fixed $wrap() not preserving some combinations of control codes across wrapped lines. 27.Added support for IRCv3 standard-replies capability. 28.Changed nick colors and hilight dialogs to use the background colors set in the colors dialog. 29.Added $input() 'x' switch that opens dialog on desktop. 30.Fixed $biton() handling of no bitmask parameter. 31.Added /copy -p switch to preserve access/creation/modified timestamps. 32.Fixed while loop break error message bug. 33.Fixed $input() buffered key presses handling bug. 34.Changed /returnex to work as expected for general use. 35.Fixed scripts editor cursor position being set incorrectly when window is minimized/restored. 36.Fixed Do Not Disturb bug that caused mIRC to crash/freeze when minimized to tray. 37.Fixed help file index popup window topic display issue.
1
369,263
Read More
|
|
Re: /write error
Khaled
01/06/23 08:24 AM
The reason for this is that notepad needs to access the file. If your script creates a file and then tells notepad to open it, there will be a point at which that file is locked by notepad while it loads the file. This will prevent other applications from modifying that file.
1
172
Read More
|
|
Re: mIRC In Dark Mode ?
saner
29/05/23 03:03 PM
Hello also glaub so wie ich es habe ist es fast darkmodus  geh mal in dein mIRC ordner und mach die mirc.ini datei mal mit notpad oder anderen text tool auf. und tausche die color einstellungen mit denn hier aus: mirc.ini open the spoiler ;-) colordarkmodus [c]mirc.ini
[colors]
n0=mIRC Classic,88,0,4,0,0,0,11,8,52,82,0,0,9,4,0,0,54,52,11,11,9,1,11,1,11,0,0,1,1,11,97
n1=mIRC Modern,0,6,4,7,2,3,4,3,3,3,3,1,5,2,6,1,14,2,3,5,1,0,1,0,1,14,5,0,0,1,97
n2=Monochrome State,1,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,1,15,1,15,15,15,14,1,15,97
n3=Placid Hues,0,2,4,7,2,3,3,3,3,15,3,1,5,7,6,1,3,2,3,5,1,0,1,0,1,15,6,0,0,1,97
n4=Rainbow Sky,0,7,4,5,1,1,3,3,8,13,3,14,2,7,13,5,3,8,3,4,14,0,5,0,3,14,10,0,0,1,97
n5=DARKMODE,1,0,4,11,0,0,11,52,52,11,11,1,13,4,0,0,0,52,11,12,1,1,0,1,0,0,9,1,1,11,97[/c]  hofffe es ist dir dark genug dann nur die datei leiste von mirc noch was ibn farbe ist sonst alles dunkel modus wie auf dem friedhof *g*  greets
3
6,959
Read More
|
|
/server -a
maroon
24/05/23 11:32 AM
For the /server -a command, the current defaults can have unwanted behavior, which might be improved by either changing the default -a behavior, or having an -A switch or changing the -a to be an -aN switch that defaults to the existing behavior.
The default behavior of -a is to ignore the -g switch and use the -d switch to try as hard as possible to update an existing serverlist entry instead adding a new entry to that -g GROUP. Due to the current behavior of trying to match description, there's no way to add a new serverlist entry - or edit an existing serverlist entry - to give it a description matching 'Random Server' or matching any other existing description in the serverlist.
This next example assumes the following -g GROUP and $servertarget do not yet exist in the serverlist:
/server -a irc.chat.twitch.tv -g Twitch -d "Random Server" -w oauth:myoathtoken -p 6667
Luckily I had the serverlist backed up. Instead of adding a new entry for this servertarget, it instead finds the first match against description 'Random Server' and changes these defined fields for that entry, even though the serverlist item's server-address and GROUP are different.
If I instead do the following 3 commands, the 2nd one does add a new serverlist entry with the description field being blank. But then the 3rd command ignores that there's a already a matching serveraddress/GROUP combo and instead does the above behavior of updating whichever is the first match against description 'Random Server'.
/server -r irc.chat.twitch.tv /server -a irc.chat.twitch.tv -g Twitch -w oauth:myoathtoken -p 6667 /server -a irc.chat.twitch.tv -g Twitch -d "Random Server" -w oauth:myoathtoken -p 6667
Fortunately /server -r doesn't use -d to find a match for removal.
- -
It seems preferable that default behavior is different, but I know there can be problems from having behavior change without a new switch, even if it's preferred.
It seems reasonable that /server -a should instead try to match against the server name/address parameter *first* before trying to find a match against the -d description.
And, if using the -g switch, then this syntax should instead pretend that only items with that groupname exist, and it would only -r remove items if there's a GROUPNAME match, but if -g is not used then it's free to make a match against the entire serverlist. And likewise if using '-a -g GROUP' it would add a new serverlist entry if it couldn't find an update-match within that groupname
0
67
Read More
|
|
Re: Hide Chat History
maroon
24/05/23 07:33 AM
Sounds like your settings have changed to enable options/irc/logging/automatic-log-and-reload Inside that button, the top row determines the default yes/no for logging that type of window, and the lowest row indicates whether it defaults to loading the last few lines of the logfile into the window each time you open it.
If you did nothing to change this setting, one cause for this suddenly being enabled is that this is the default setting, so if the rare situation happens where mirc.ini has become damaged to size zero during a Windows crash, then mirc.ini is re-created with default settings, and you would have found other configuration settings possibly changed back to defaults, including not remembering which of your additional scriptfiles are loaded, or custom event colors.
1
61
Read More
|
|
Any way to hide a Custom Dialog window
LeglessUK
23/05/23 12:41 AM
Is there any way to hide a custom window that was created using the /dialog command?
I have a custom dialog window that I wish to toggle on/off (using an icon I've created on the toolbar), but can't find any options like the /window -h or /window -r switches, to do this using the /dialog command.
Currently I'm just using moving the window out of view by doing: /dialog -s $dname -1000 -1 -1 -1 to hide it and /dialog -r $dname to return it back to it's original position, this all seems a bit hacked together. Is there a better way to do this, any help appreciated.
0
78
Read More
|
|
alias fabian { if (!$window(@Ident)) { .window -
XGamerAMD
20/05/23 10:19 AM
alias fabian { if (!$window(@Ident)) { .window -dok0w0 @Ident 400 400 350 500 $+(Comic Sans MS 20) $mircexe 22 } | else { .clear @Ident } var %data c:\mirc\ident\ $+ $1 $+ .qbm | if (!$exists(%data)) .echo -a No File:04 %data var %i $lines(%data) | while (%i >= 1) { var %info $read(%data,%i) | tokenize 32 %info .iline @Ident 1 00,01 $+(14,$1,00,$chr(44),01) $2 $+(07,$3,00,$chr(44),01) $4 $5 dec %i } }
this a script to read the idents of a nick and show the all nicks are connected, i want do in tree form
any help?
0
91
Read More
|
|
Re: $mapw $maph
Wims
18/05/23 03:47 PM
I'd like to see this added as well, it would help converting dialog to the supposedly better 'map' option.
After some testing (win10 & win7, 100% dpi aka no dpi setting) it seems the ratio is 1.336 for $mapw and 1.228571428571428571428571428571 for $maph (via bigfloat math, 1.228571 is ok for all practical purposes?).
With that you can convert any size and coordinate and get a dialog that looks the same with map than it looked for dbu.
As well as a better/more standard spacing, map is meant to work with dpi settings, when dbu is not.
1
479
Read More
|
|
Re: multi-login
kap
17/05/23 11:59 AM
Something like this would work:
alias t1 {
var %rep 5
var %interval 61
if ($timer(post271666)) .timerpost271666 off | if ($hget(conn_ect)) hfree $v1
else {
; add your nicks to the variable %nicklist, space delimited
; ---------------------------------------------------------
var %nicklist specnick1 specnick2 specnick3 specnick4 specnick5
; ---------------------------------------------------------
; add nicklist to hashtable/item so we can work with it later
hadd -m conn_ect nicklist %nicklist
; setup the timer and fire/execute it immediately
.timerpost271666 -io %rep %interval conn_ect | .timerpost271666 -e
}
}
alias conn_ect {
var %server testnet.ergo.chat
var %port +6697
var %join #test271666
var %step 3
while (%step > 0) {
if (($hget(conn_ect)) && ($hget(conn_ect,nicklist))) {
; chop up nicklist, delimit on space - $chr(32)
tokenize 32 $hget(conn_ect,nicklist)
; grab the first nick off the list
var %nick $1
; save the remaining nicks in the hashtable/item
hadd -m conn_ect nicklist $2-
}
; if nicklist empty, fallback on creating a random nick
else var %nick $+(test,$base($rand(0,9999),10,10,4))
; an altnick might be handy to have, base it off %nick
var %altnick $+(%nick,_)
; connect to the server with the specified settings
server -m %server %port -i %nick %altnick -j %join
; dec the while loop
dec %step
}
}
4
224
Read More
|
|
Re: /while: loop not found
Khaled
13/05/23 06:53 AM
Testing this further, it looks like the behaviour is not quite right here. Since you are using /reseterror to cancel the break, it should not be halting the script at that point. This issue will be fixed in the next beta.
3
255
Read More
|
|
Re: /parseline always mangles data
Khaled
13/05/23 06:50 AM
That seems fine, but then it actually sends é (utf8encoded the raw bytes) - But combined with the -u0 switch it seems to works as expected: © Good to hear. That's right, you would need to use -u0, since -u affects how lines are UTF-8 encoded/decoded in the core server send/receive routines. The -a switch only affects how the &binvar is parsed in the /parseline command.
3
233
Read More
|
|
/clipboard -bu -- binvar and utf8 encoding
Wims
12/05/23 10:05 PM
-b : copy the binvar into the clipboard (not sure if nul byte can be preserved in this case but still worth it if they can't). Copy binvar as is, don't encode/decode the binvar even if -u isn't used -u : prevent utf8 encoding of character in the range 0-255 as long as the line contains no characters > 255. should be ignored if -b is used
0
80
Read More
|
|
|
|