mIRC Home    About    Download    Register    News    Help

Active Threads | Unanswered Past 24 hours | Past 48 hours | Past Week | Past Month | Past Year
mIRC Help Jump to new posts
mIRC prevents monitor from sleeping RonnyJ 7 hours ago
The last week, I've had issues with desktop PC monitor not entering sleep mode after the 10 minutes it's supposed to (Windows 10 version 22H2 and mIRC version 7.76).

Eventually, I found out that it only happens when mIRC is running.

Found out that when mIRC is running, powercfg reports that "An Audio Stream Is Currently in Use".

Tested with both the Realtek ALC1150 onboard sound and my old Sound Blaster X-Fi Titanium HD (onboard disabled in BIOS when using the SB).

Disabling the audio devices prior to starting mIRC, and then enabling them when mIRC is running seems to work. Powercfg does not report any audio stream in use so far.

In mIRC options, all settings for sound is disabled.

I've had mIRC running for years and never had the monitor not going to sleep before, so no idea what happened this week.

Copied my mIRC install (both program files and appdata folders) over to a laptop running Windows 11, and it doesn't happen there.

Anyone else had this issue, or any tips to what to do?

Thanks!
0 9 Read More
Feature Suggestions
Extending /dns nelgin 8 hours ago
I would like to see some options added to /dns to make it a little better.

Add -s to specify which DNS server to use. For scripts that want to do RBL or dronebl lookups, this would be useful. Impossible to do currently.

-t specifies what type of result to return, whether it's an A record AAAA, PTR, etc or -t ANY (default)

-m (maybe? method of connection) u or t for UDP or TCP

Finally, return results to a variable, such as $dns or something without having to go through ON DNS.

The only way to achieve any of this currently would be to write my own dns client in mirc which seems a bit overkill, or run an external program which isn't portable.
0 9 Read More
Bug Reports
mIRC beta Khaled 14/05/24 09:12 PM
The latest beta can be downloaded here and includes the following changes:

Quote
Beta v7.76.4244 changes:
1.Item 27, fixed https://forums.mirc.com/ubbthreads.php/topics/272641
2.Item 27, fixed /play dialog not being displayed correctly.
3.Item 27, tweaked size/position/alignment of various controls.
4.Item 27, added missing ellipses "..." to buttons and menu items
that open dialogs.
5.Item 27, changed buttons in various dialogs, eg. Address Book Users
Whois, Options/DCC/Trusted Users, etc.
6.Item 27, reworded/simplified strings.

Beta v7.76.4141 changes:
1.Item 27, changes:

Redesigned 120+ dialogs, and several other non-dialog windows,
and resized/repositioned all controls to make them translation
friendly. Microsoft recommends 30% more width compared to English.
Most controls are now at least 30% wider than their English text.
It has taken many reviews per dialog for the overall design to
settle.

Hundreds of changes were made to the resource file to standardize
dialog/control sizes/flags, as there were many variations due to
the dialogs being created over several decades. For example, all
buttons now use the standard 50x14 size, although some are longer
depending on the text. This is not wide enough for all languages,
so still needs to be reviewed.

Some group boxes had long title text that would be chopped when
translated. In some cases, I shortened the group title text and
lengthened the descriptions of their contents. In other cases, I
removed group boxes entirely and just used headers.

Code changes were required in some cases. For example, the Options
dialog and Category listbox are now resized based on the widest string,
since the category names can be translated. The Options IRC dialog
now uses a listbox of checkbox items, as there were too many
settings. Technically, many more settings could be moved to this
listbox from other dialogs but I have made it only contain the settings
from the IRC dialog for now. The About dialog "Check for Updates" button
is resized based on the length of the text. SysLink controls can be
either left or right aligned, so if you have a SysLink centered in a
dialog, it needs to be dynamically repositioned in code to center it
nicely based on the translated text width. And so on.

The Options and Address book dialogs center their contents, which
requires a slightly trickier maximum width calculation of contents
per tab, where the text width in controls is measured and the controls
are resized to the maximum necessary width and then the overall width
of the tab content is calculated to center the controls. It would have
been far easier to just make everything left-aligned but I like the
aesthetics of the centering.

Overall, this change should, hopefully, make it a lot easier for
translators.

Beta v7.76.3628 changes:
1.Item 27, changes:

Updated the dialog resource parser to handle several more
contexts when loading/checking/comparing resources. Also now
takes account of changes that Resource Hacker makes to controls,
which was preventing mIRC from validating/using them.

Experimented with resizing dialogs/controls in order to handle
longer translated text. Many of the dialogs and controls are tightly
sized/fitted. This will require changes to almost all dialogs and
will take a lot of work.

Signed up with with Crowdin for translations and experimented with
editing/importing/exporting resources.

Beta v7.76.3405 changes:
1.Item 31, https://forums.mirc.com/ubbthreads.php/topics/272550
2.Item 11, added $markasread.
3.Item 33, changed. Slightly tricky as Windows XP handles
SysLinks differently.
4.Item 34, to match 33 for consistency. Initially changed to
SysLinks but the way SysLinks are displayed led to backward
compatibility issues with scripts, so I decided to update my
custom links code to handle tab/focus and tried to maintain
as much backward compatibility as possible.
5.Item 35, https://forums.mirc.com/ubbthreads.php/topics/272577
6.Item 27, changes:

Shortened item 27 description. Added a link below the language
listbox in the Options/Display dialog to open a languages page
on the mIRC website that describes the feature in detail.

Added folder button next to language listbox in Options dialog
to open up the language folder in explorer to make it easier
for users to place language files there. If files are changed in
the folder while the Options dialog is open, the list of language
DLLs is automatically updated in the listbox so that they are
immediately available.

Strings in the RT_STRING section are now checked to see if they
start with "* /command:" or "* $identifier:" to make sure the
names aren't changed.

Made the filename format a little more strict. It now needs to
start with "mirc" and end with a language code, eg. "-en-US", and
".dll". You can type /langdll -e to list all of the language codes
that your Windows version supports. Older versions of Windows support
different codes for some languages and are missing newer ones. Also
note that Windows itself supports a smaller subset of a much larger
set of standard codes.

Extended /langdll -m [code] to specify the language code, eg. for
English US you can specify: 0x0409, 1033, or en-US. This then sets
the language DLL name and the language for the resource sections.
Technically this is not required since the language DLL must
be a single-language DLL. mIRC loads the resources as a neutral
language. However, it may be used in the future. Also, the language
codes in the DLL's VERSION resource are now updated. The language
codepage in mIRC's VERSION resource is now 1200 (Unicode). This
also shows the DLLs language when the file's properties are viewed
in explorer.

Experimented with code-signing the language DLL. It turns out that
Risoh Editor modifies the DLL in a way that is not recognized by
signtool.exe for code signing. DLLs modified by Resource Hacker
can be signed without issue.

Beta v7.76.2695 changes:
1.Item 30, fixed not being set correctly in release beta.

Beta v7.76.2691 changes:
1.Item 27, several changes.

Options dialog will now detect if the currently selected language
DLL timestamp has changed and will prompt for a restart.

Moved several keyboard shortcuts, that were hard-coded, to the
accelerator table, so that they are now translatable: Alt Q and
Control T, D, L, N, W, Q, F, A.

mIRC still requires a restart if a language DLL is changed. However,
technically, it is now able to switch to a new DLL on-the-fly, and
will update menus, accelerators, strings, and dialogs, including
titlebars of open status/channel/etc. windows, the text in
DCC send/get windows, the scripts editor, and so on. However, it
cannot update open dialogs, as these can change their text in
some contexts. So, for now, it will still require a restart.

Beta v7.76.2477 changes:
1.Item 28, fixed.
2.Item 29, added.
3.Item 30, fixed. Due to Visual Studio 2017 change.
4.Item 31, changed.
5.Item 32, updated.
6.Item 27, updated, see for details. Changes to all of the resource
parsing code. As this is a first release of a new feature, with a lot
of new code relating to translatable resources, it needs testing.

Beta v7.76.1610 changes:
1.Item 4, https://forums.mirc.com/ubbthreads.php/topics/272418
2.Item 25, added.
3.Item 26, added.
4.Item 27, changed.

Reviewed 10000+ strings embedded in the source code, filtered down
by heuristics. Most translatable strings were already in resources
but some needed to be moved.

This also allowed me to review which literal strings needed
to remain in the code as non-translatable, depending on context,
eg. "Status Window" needs to remain non-translatable when used
internally in scripts and ini file item names, otherwise these
would break every time a different language was used, but needs
to be translatable for the GUI. This applies to window names,
script-related names, ini item names, and a variety of other
strings.

Some dialogs needed extra code to convert to/from the translatable
GUI resource string, visible in the dialog, and its non-translatable
version that is used internally.

A lot of legacy code depends on strings being formatted in a specific
way, eg. spaces/order of words in strings such as "Status Window". So
translating mIRC will not be as simple as just translating the text
in resources. A translator will need to be aware of a string's context,
format, and word order and the need to keep it as close as possible
to the original. Changing the code to get around these limitations
will take much more work.

Overall, this beta includes several hundred changes to source code
files and resources.

Beta v7.76.1151 changes:
1.Item 18, fixed focus being set on editbox after the find/replace
buttons are pressed.
2.Item 23, fixed.
3.Added back smiley face to right-click on About button at
different icon sizes.
4.Item 24, https://forums.mirc.com/ubbthreads.php/topics/272403

Beta v7.76.1060 changes:
1.Item 15, fixed.
2.Item 5, fixed a Find/Replace bug where the first attempt
for a Replace All was not working.
3.Item 18, changed.
4.Item 16, changed, eg. when switching between mdi/desktop
windows.
5.Item 17, fixed.
6.Item 19, fixed.
7.Item 20, fixed.
8.Item 21, updated.
9.Item 22, updated.
10.Updated help file.

Beta v7.76.856 changes:
1.Item 9, https://forums.mirc.com/ubbthreads.php/topics/272379
2.Item 10, added.
3.Item 11, added. To apply to all server connections, you would
need to use /scon -a.
4.Item 12, added.
5.Item 13, added.
6.Item 14, fixed.

Beta v7.76.668 changes:
1.Item 6, udpated. The update.html file now contains a file
signature used by mIRC to verify that the installer is
authentic and unmodified.
2.Item 8, extended.

Beta v7.76.237 changes:
1.Item 1, https://forums.mirc.com/ubbthreads.php/topics/272326
Note that this UTF-8 decodes characters as well.
2.Item 2, https://forums.mirc.com/ubbthreads.php/topics/272329
Tested with different combinations of font/font size/button
size. Needs further testing.
3.Item 3, https://forums.mirc.com/ubbthreads.php/topics/272331
4.Item 4, added. This also UTF-8 encodes/decodes characters.
5.Item 5, fixed.
6.Item 6, added.
This will download and execute the exe specified in update.html
on the mIRC website. The exe is saved to the "updates" folder.
Currently, the exe is the standard install file, set to update
files in silent mode. By default, it will backup existing files,
update mirc.exe, mirc.chm, ircintro.chm, readme.txt, versions.txt,
and cacert.pem, and will perform required updates to other files
where necessary. After the update is complete, mIRC is restarted
and the About dialog is displayed.
7.Item 7, https://forums.mirc.com/ubbthreads.php/topics/272346

Changes:
1.Fixed $urlget() support for percent-encoded username:password
format.
2.Fixed treebar spacing when switching back and forth between
different icon sizes.
3.Fixed $base() floating point conversion bug.
4.Added $encode()/$decode() 'x' switch that percent-encodes/decodes
all characters except "unreserved" as defined in RFC3986.
5.Fixed Scripts Editor find/replace bug where first found item
was not being replaced.
6.Added Check for Updates support for downloading/installing an
update directly.
7.Fixed auto-op/voice/protect being incorrectly triggered when
you don't have ops.
8.Extended $samepath() to handle more contexts, such as subst
drives and network prefixes.
9.Changed Scripts Editor find/replace dialog behaviour to wrap both
forward and backward when a search ends.
10.Added Scripts Editor find/replace dialog "Count" option to
display number of found/replaced matches.
11.Added /markasread [name] that marks the specified window name as
read. If no name is specified, all windows on a server connection
are marked as read. The $markasread identifier returns the number
of windows on a server that are currently unread.
12.Added Scripts Editor find/replace dialog support for escape key
to stop a long search.
13.Added Scripts Editor find/replace dialog support for remembering
dialog position after restarting mIRC.
14.Fixed $input() dialog not accepting escape key to close dialog
if only ok button is displayed.
15.Fixed editbox eye icon focus bug when switching to another control.
16.Changed Find dialog in status/channel/query windows so that it will
re-open in the active window if Control+F is pressed while open in
another window.
17.Fixed MDI window titlebar colors not being set correctly when
desktop/mdi windows are active/inactive.
18.Changed Scripts Editor Find/Replace dialog to modeless, allowing you
to scroll/edit in the editbox while the dialog is open.
19.Fixed Shift+Tab to show nick list keyboard shortcut not working in
windows without editboxes.
20.Fixed List Channels dialog not enabling/disabling List button when
the active server connects/disconnects.
21.Updated OpenSSL library to v3.0.13.
22.Updated zlib library to v1.3.1.
23.Fixed $input() icon/text positioning on different DPI displays.
24.Added email/userid support for IRCX mask \ character.
25.Added MDI window/menubar icon sizes for different DPI displays.
26.Added alternative method for opening help files that gets around
the Windows CHM locked files issue.
27.Added support for loading translated resources from external
language DLLs found in the "languages" folder. All dialogs were
redesigned to support longer language text. A language option
has been added to the Options/Display dialog that displays the
language name, code, and DLL name. The internal default is English
(en-US). The language setting is saved to mirc.ini in the
[language] section. mIRC also suports a /langdll command and
a $langdll identifier that returns the currently loaded language
dll. See the languages page on the mIRC website for details.
28.Fixed $window().title not returning correct title text for DCC
Send/Get windows.
29.Added $window().fulltitle that returns the full titlebar text.
30.Fixed manifest file being included twice in resources.
31.Changed Treebar DCC Send/Get to show progress bar below text like
the switchbar.
32.Updated CA root certificates cacert.pem file.
33.Changed hyperlinks in dialogs to use standard "SysLink" controls
that can handle tab/focus.
34.Changed custom links in custom dialogs to handle tab/focus.
35.Fixed $mid() maximum length limit to match $maxlenl.
1 398,858 Read More
Bug Reports
Re: v7.76.4141 - Missing close button in dialogs? Khaled 13/05/24 07:07 PM
Thanks this issue has been fixed for the next beta.
1 146 Read More
Bug Reports
Re: Comment: /* */ Sepharad 13/05/24 02:20 PM
Thanks for the reply! great work, been using mIRC since 2000 and I see is still alive smile
2 124 Read More
Feature Suggestions
SSL Connection to Proxy TrioAshburry 13/05/24 04:22 AM
The way things currently work is you connect a proxy server then encrypt the data so the proxy server cannot edit/read the text.
I propose a new way where you connect to the proxy using SSL and let the proxy server worry about an SSL connection to the IRC server based on port numbers alone.
All it takes is a checkmark on the Proxy page on options to use SSL for proxy server. I know its a long shot but it would help me a great deal since currently for people to connect to my proxy they have to specify an SSL port without the + sign then the proxy server autodetects the port number and starts an SSL connection to the IRC server. This way the proxy server can change and read the text coming to and from the proxy server.

Thank You very much.
0 186 Read More
Feature Suggestions
Re: Editable Language Files for mIRC Epic 12/05/24 09:37 AM
I'm glad this is finally possible and will now be officially supported.

It will be interesting for me to take part and I am ready to translate mIRC into Russian language for all Russian-speaking users and fans of this IRC client.

This will take a lot of time, so I will make a dll-file with translation gradually, as free time appears.
7 1,654 Read More
mIRC Help Jump to new posts
Re: Auto Reply with a name within a sentence Srj 10/05/24 08:06 PM
This is exactly what i needed! Thank you so much, and i appreciate you giving me multiple variations of it too. I'm learning slowly, and this helps a ton!
5 371 Read More
Scripts & Popups Jump to new posts
Re: TEXT to LINK Fernet 10/05/24 07:03 PM
Originally Posted by KindOne
That is not possible on IRC. You could use a "url shortener".

What's it?
Thanks
2 251 Read More
Scripts & Popups Jump to new posts
Re: Nickname colorization by user status KindOne 10/05/24 05:54 PM
You can easily colour the nicks based on the users mode status in the channel.

Code
; Enter these three lines of /cnick anywhere in mIRC (channel/query/status editbox)
; Channel ops are blue
; Voiced users are orange
; Normal people are green.
; This changes settings here: Tools -> Address Book -> Nick Colors
; Press CTRL+K anywhere in the editbox for a list of colour numbers to pick from.

/cnick -f * 12 @
/cnick -f * 7 +
/cnick -f * 3


IRCOP/OPER would need to be based directly on their vhost/spoof/cloak, assuming they have one.
Code
/cnick -f *!*@example.foobar.com 4

Tracking /away status is a bit more tricky. I have a script that requires IRCv3 away-notify. If the network supports the feature it will be printed in the status window when you connect:

Quote
[13:06:13] * Connecting to irc.foobar.com (+6697)
[13:06:14] -irc.foobar.com:Auth- *** Looking up your hostname...
[13:06:14] -irc.foobar.com:Auth- *** Could not resolve your hostname...
[13:06:14] Caps supported: away-notify ...
[13:06:14] Caps set: away-notify ...
[13:06:15] -irc.foobar.com:Auth- Welcome to foobar!
[13:06:15] Welcome to the foobar IRC Network ...


If you use the script below you will need to enter:

Code
/ialfill #channel

OR rejoin all the channels for the script to get the /away status of everyone already inside the channel.
You will need to change %away-nick-colour in the script below to a different number for your dark green.
Code

; Future updated versions can be found here:
; https://bitbucket.org/KindOne/mirc-scripts-public/src/master/away.mrc

; For mIRC 7.61 or newer if you want instant updates.
; 01/03/2020 - mIRC v7.61
; ...
; 5.Fixed /cnick not updating nick color immediately when used with a
;  full address.
; ...
; 15/04/2017 - mIRC v7.48
; ...
; 18.Added CAP support for away-notify...
; https://ircv3.net/specs/extensions/away-notify-3.1

; NOTES:
; Currently set to use grey ( ctrl+k 14 ) because Xchat/HexChat uses that.
; Any nicks the address book ( /abook -l ) with this colour will be deleted
; when this script is loaded / unloaded or client connects / disconnects.

; If you don't like that colour, you can change it to something else below.
; Anything using the colour you pick will be deleted.

; mIRC does not have multi-network support for "Nick Colors".
; This script attempts to fix some of those issue by using hash tables.

; KNOWN ISSUES:
; If someone is on multiple networks with the same nick!ident@host
; without (cloaking/spoofs/vhosts/whatever) and they only change the
; /away status on one network the status change will be applied for
; all other networks.

; ZNC: If you are in a large amount of channels you might get output in the
; status window due to this:
; https://forums.mirc.com/ubbthreads.php/topics/260197//ialfill_WHOX_995_output_visib

; TODO: Delete people that are /away if I part a channel with only them.

on *:start:{
  .cnick on

  ; Change this for a different colour.
  set %away-nick-colour 14

  away-nick-delete
  if ($hget(away-nick-colour)) { hfree away-nick-colour }
  hmake away-nick-colour 200
}

on *:unload:{
  away-nick-delete
  if ($hget(away-nick-colour)) { hfree away-nick-colour }
  unset %away-nick-colour
}

; Delete all entries with the %away-nick-color when closing mIRC.
on *:exit: { away-nick-delete }

on *:connect:{
  if ($hget(away-nick-colour)) {
    ; Connecting or reconnecting on a network, delete all entries only for that network if any exists.
    ; Use the $right($calc($len(...))) to remove "$network_" from the "nick!ident@host" hash table item.
    noop $hfind(away-nick-colour,$network $+ _*,0,w,.cnick -r $right($1,- $+ $calc( $len($network) + 1))))
    noop $hfind(away-nick-colour,$network $+ _*,0,w,hdel away-nick-colour $1)
  }
}

on *:disconnect:{
  if ($hget(away-nick-colour)) {
    ; Disconnected on a network, delete all entries only for that network if any exists.
    ; Use the $right($calc($len(...))) to remove "$network_" from the "nick!ident@host" hash table item.
    noop $hfind(away-nick-colour,$network $+ _*,0,w,.cnick -r $right($1,- $+ $calc( $len($network) + 1))))
    noop $hfind(away-nick-colour,$network $+ _*,0,w,hdel away-nick-colour $1)
  }
}

; User set or unset /away, change the nick.
raw away:*:{
  if ($1 != $null) {
    .cnick $fulladdress %away-nick-colour
    hadd away-nick-colour $+($network,_,$fulladdress)
  }
  if ($1 == $null) {
    .cnick -r $fulladdress
    hdel away-nick-colour $+($network,_,$fulladdress)
  }
}

; Unset /away
raw 305:*:{
  .cnick -r $address($me,5)
  hdel away-nick-colour $+($network,_,$address($me,5))
}
; /away ...
raw 306:*:{
  .cnick $address($me,5) %away-nick-colour
  hadd away-nick-colour $+($network,_,$address($me,5))
}

; /who #channel || /ialfill #channel (no /whox support)
raw 352:*: {
  if (G isin $7) {
    .cnick $+($6,!,$3,@,$4) %away-nick-colour
    hadd away-nick-colour $+($network,_,$6,!,$3,@,$4)
  }
}

; /ialfill #channel (/whox support)
raw 354:*:{
  if (($2 == 995) && (G isin $8)) {
    .cnick $+($7,!,$4,@,$5) %away-nick-colour
    hadd away-nick-colour $+($network,_,$7,!,$4,@,$5)
  }
}

on *:join:#:{
  if ($nick == $me) {
    .ialfill $chan
  }
}

on *:nick:{
  ; Delete old nick add new one if they are /away.
  if ($cnick($fulladdress)) {
    .cnick -r $fulladdress
    .cnick $address($newnick,5) %away-nick-colour
    hdel away-nick-colour $+($network,_,$fulladdress)
    hadd away-nick-colour $+($network,_,$address($newnick,5))
  }
}
on *:quit:{
  .cnick -r $fulladdress
  hdel away-nick-colour $+($network,_,$fulladdress)
}

on *:part:#:{
  ; I parted all channels. Delete all users for that network.
  if ($nick == $me) && ($chan(0) == 1) {
    ; Use the $right($calc($len(...))) to remove "$network_" from the "nick!ident@host" hash table item.
    noop $hfind(away-nick-colour,$network $+ _*,0,w,cnick -r $right($1,- $+ $calc( $len($network) + 1))))
    noop $hfind(away-nick-colour,$network $+ _*,0,w,hdel away-nick-colour $1)
  }
  ; Delete the nick if we do not share any channels if they /part one.
  if ($comchan($nick,0) == 1) {
    .cnick -r $fulladdress
    hdel away-nick-colour $+($network,_,$fulladdress)
  }
}

; Only delete the nicks ( /abook -l ) that are using the colour the script is using.
alias -l away-nick-delete {
  var %x $cnick(0)
  while (%x) {
    if ($cnick(%x).colour == %away-nick-colour) {
      .cnick -r $cnick(%x)
    }
    dec %x
  }
}
3 197 Read More
Bug Reports
Re: /list hiding some channels on DALnet MstrControl 06/05/24 05:53 AM
Weird.

I got it now.

Closed.
4 942 Read More
Scripts & Popups Jump to new posts
Re: Delete repeated words Regex? Simo 05/05/24 07:41 PM
excellent thanks for the explanation and clarification Wims as you noticed im by no means a wizard of regex.
6 629 Read More
Scripts & Popups Jump to new posts
Re: Timer Epic 01/05/24 08:22 AM
It seems your question has already gone far beyond the title of the topic under discussion :-]

Ok. You can do it like this:

  • Save to variable a random file line number.
  • Save to variable file line with the specified number.
  • Remove the specified line number from the file.
  • Write this line to a new adjacent file.
  • When the old file becomes empty, it must be deleted, and the new file must be renamed to the old file name.



So, after the above plan, you can try using this code modification:
Code
on *:TEXT:*:#channel:{
  if ($nick == ServiceBot) { return }
  if ($nick isop $chan && $1 === !ON) { bot_stop | bot_start $chan }
  elseif ($nick isop $chan && $1 === !OFF) { bot_stop }
  else { bot_stop | .timerBOTSTART 1 1800 bot_start $unsafe($chan) }
}
alias -l bot_start {
  msg $1 Va beh...nessuno parla allora parlo io...
  rand_msg $1 | .timerRANDMSG 0 60 rand_msg $unsafe($1)
}
alias -l bot_stop { .timerBOTSTART off | .timerRANDMSG off }
alias -l rand_msg {
  var %colors 2,3,4,5,6,7,8,9,10,11,12,13, %cc $chr(3)
  var %rc $gettok(%colors,$rand(1,$numtok(%colors,44)),44)
  var %file addons\miefrasibot\frasibot.txt
  var %file1 $+($file(%file).path,$file(%file).name,1,.txt)
  var %rn $rand(1,$lines(%file)), %str $read(%file,nt,%rn)
  .write $+(-dl,%rn) %file | .write -i $qt(%file1) %str
  if ($lines(%file) == 0) { .remove $qt(%file) | .rename $qt(%file1) $qt(%file) }
  msg $1 $+(%cc,%rc,%str,%cc)
}
24 3,152 Read More
Bug Reports
Re: mIRC does not send pasted lines after confirmation rockcavera 30/04/24 06:24 PM
Thanks for the answers.

I discovered the culprit, it was the Free Download Manager, which I had installed yesterday.

Problem closed.
3 409 Read More
Bug Reports
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 637 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 1,235 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 411 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 133 Read More
Scripts & Popups Jump to new posts
Re: Simple multizone timezone clock Ascertainment 18/04/24 05:25 PM
ORIGINAL

on *:TEXT:!time:#:{
timer 1 1 msg $chan The Time here is $time(hh:nn:ss T)
timer 1 2 msg $chan The Time ahead of here is ( $calc ( $time + 60 ) )(hh:nn:ss T )
}

A FIX Version without changing to much

on *:TEXT:!time:#:{
timer 1 1 msg $chan The Time here is $time(hh:nn:ss TT)
timer 1 2 msg $chan The Time ahead of here is $asctime($calc($ctime + (0 + 1*3600)), hh:nn:ss TT) +1 Hour
}



Ive added an extra T also in your 2nd time you have spaces and are between your identifiers you cant do this anyway
here we dont use $time we use $asctime($calc($ctime + (0 +1*3600)), (hh:nn:ss TT) also no space ( Not like this but (like this)
i wont go into too much detail, hope this helps heres the fix for the above command:


on *:TEXT:!time:#:{
timer 1 1 msg $chan The Time here is $time(hh:nn:ss TT)
timer 1 2 msg $chan The Time ahead of here is $asctime($calc($ctime + (0 + 1*3600)), hh:nn:ss TT) +1 Hour
}

Ascertainment
3 685 Read More
Bug Reports
Re: $mid with large text bug Khaled 15/04/24 07:22 AM
Thanks, it looks like $mid() had an internal maximum limit of 10000 vs the 10240 that $maxlenl returns. This issue has been fixed for the next version.
1 362 Read More
mIRC Help Jump to new posts
Re: Double-clicking link does not work Khaled 14/04/24 12:16 PM
You do not have to change any options for this to work. If it is not working, this means that either your Windows is not configured to use a default browser or you are using a script that blocks hotlinks.

An easy way to test this is to install a clean copy of mIRC, using the portable option in the installer, in a new, empty folder with no scripts or addons, and to test it there.

And you should, of course, make sure that you are using the latest version of mIRC.
1 703 Read More
Connection Issues Jump to new posts
Re: DCC Max Speed Khaled 13/04/24 12:31 PM
There is a limit, however it is not related to a specific transfer rate. This is due to mIRC being a single-threaded application, which means that if DCC Send was allowed to run at full-speed, it would block the user interface. There are several windows message-based features in mIRC that can do this, so mIRC uses various methods to minimize it. This has, of course, been discussed before :-) Looking through versions.txt, I'm amazed to see that DCC Send/Get was added in 1995, when modem speeds were around 28.8kbps, and went through various implementation changes after that. The first discussion of the internal limit probably came up around the time that someone managed to get a super-fast internet connection many years later. The topic then comes up again periodically when someone tries to transfer a large file. Is it important? I have no idea. My network speed, on a very good day, is around 5MB/s. Should I redesign the entire DCC Send/Get implementation to use threads? Maybe. I usually add features or make changes if I think it will be a fun/interesting challenge. At some point, it may pique my interest :-)
1 762 Read More
Developers
Re: Spotify now-playing for mIRC turbosmurfen 12/04/24 08:17 PM
Originally Posted by Epic
You can find it at the following links:


Thanks for the help, I saw this now.
28 17,498 Read More
Scripts & Popups Jump to new posts
Re: Scripting to use Undenet X commands Simo 12/04/24 07:24 PM
At this point its not clear to me what exactly you sre looking for because these lines you mention could mean anything also i tested myself on undernet and undernet supports 6 mode settings in 1 line like +bbbbbb wich is what i utilized now the code could be modified but only if elaborate to detail exactly what it is you want script to do.
5 851 Read More
mIRC Help Jump to new posts
Re: Mirc deletes next character when typing Wims 08/04/24 07:42 PM
It's called insert (or overtype) mode - you very likely pressed the insert (INS) key on your keyboard to enable it - you need to press it again to change it back to normal mode.
1 257 Read More
Page 1 of 9 1 2 3 4 5 6 7 8 9