mIRC Home    About    Download    Register    News    Help

Active Threads | Unanswered Past 24 hours | Past 48 hours | Past Week | Past Month | Past Year
Scripts & Popups Jump to new posts
Re: Check Stored Hosts on JOIN Simo Yesterday at 06:34 PM
thanks lire i will work with that and go from there.
3 375 Read More
Scripts & Popups Jump to new posts
Re: login conect script Iire Yesterday at 11:55 AM
Hello,
I'm noticing two things in your on NOTICE event, (and one minor thing in your /prelogin alias):

For the /prelogin alias, ($network) will be treated as plain text, rather than as the identifier $network surrounded by parentheses. In order to get the network name wrapped in parentheses, you will need to use a $+ concatenator (preferably the infix version) between each "(" and ")" parenthesis and the $network identifier:
( $+ $network $+ )

As for the on NOTICE event issues...

The first thing I see there is that you have an extra event parameter:
on *:NOTICE:*You are now identified*:*:NickServ:{

If you remove the part underlined in red, the event should trigger correctly and will no longer attempt to execute "/NickServ:{" as a command whenever anybody sends you a notice containing the text "You are now identified".

The second, which I'm assuming is a typo, is that you're checking if the value of $server is irc.misiochat.net, without a g...
if ($server == irc.misiochat.net) {
...rather than irc.gmisiochat.net, with a g.

Other than those two things, your script should work fine. However, you should also be aware that timers will evaluate identifiers and variables used in their command parameter twice: once when the /timer command itself is encountered and the timer is created, and then again when that timer is actually executed and runs the command you've passed to it.

Although this is unlikely to be an issue for your particular case, you should get into the habit of wrapping any identifiers or variables that you use within a timer's command parameter inside the $unsafe() identifier in order to prevent mIRC from attempting to evaluate them twice. (Imagine, for instance, what might happen if any of your passwords began with a $ or % character.)

So
.timerNickServ 1 3 msg NickServ IDENTIFY $ns_pass
...would become:
.timerNickServ 1 3 msg NickServ IDENTIFY $unsafe( $ns_pass )

And
.timerOper 1 1 OPER $oper_user $oper_pass
...would become:
.timerOper 1 1 OPER $unsafe( $oper_user $oper_pass )

Hope this helps. smile
1 144 Read More
Scripts & Popups Jump to new posts
Re: Ban on specified time RoCk 19/05/25 03:56 PM
Looks good to me.
1 201 Read More
Bug Reports Jump to new posts
Re: InspIRCd numeric 650 and "Services Message". Khaled 18/05/25 01:43 PM
Thanks for your bug report. As far as I can tell, this is behaving as expected.

mIRC added support for DALnet's numerics 650 and 651 in 2002.

When mIRC sees numeric 650, it assumes that one or more service messages will follow, so it plays a single notice event sound, displays the message "Services Message" in reverse (as requested by users at the time), and then displays a list of incoming services messages. When it receives numeric 651, this indicates the end of the group of related services messages.

That said, it looks like InspIRCd does not send numeric 651, which means that mIRC cannot tell when the services messages group has ended.

I am going to change the implementation of this to be less dependent on receiving numeric 651. This change should be in the next beta.
1 231 Read More
Scripts & Popups Jump to new posts
Re: Scheduled PM? Fernet 18/05/25 08:23 AM
Why don't You send a memo? Maybe is more easy
1 196 Read More
Feature Suggestions Jump to new posts
Underscores RoCk 11/05/25 03:09 PM
There is the option to fill spaces for sending files, could you add the option to remove underscores when receiving files? I have a script to do just that, but I help a lot of users who get confused with scripts. Thanks!
0 118 Read More
Scripts & Popups Jump to new posts
Re: Upper case nick Simo 11/05/25 11:37 AM
Code

on !*:JOIN:#:{
  if (!$Timer($+(CheckNicks,.,$network,.,$chan,.,$nick))) {   .Timer $+ $+(CheckNicks,.,$network,.,$chan,.,$nick)  -md 1 750 badnick_alias $unsafe($chan) $nick  } 
}

ON *:nick:{
  haltdef
  var %whloop = 1
  while ( $comchan($newnick,%whloop) != $null )  {
    var %chan $v1
    if (!$nick(%chan,$newnick,@&~%) && $nick(%chan,$me,@&~%)) { badnick_alias %chan $newnick  }
    inc %whloop
  }
  halt
}

ON *:op:#:{
  if ($opnick == $me) {
    var %loop = 1, %nick , %kickmsg = please change your nick thank you.... 
    while (%loop <= $nick($chan,0)) {
      %nick = $nick($chan,%loop)
      if ($len( %nick ) < 3 || ($calc($regex(%nick,/[A-Z]/g) * 100 / $len(%nick)) > 30)) { 
        if (!$nick($chan,%nick,~&@%+)) { var %banmask = $addtok(%banmask,$MuteBanMask(%nick),32) }
        if ($numtok(%banmask,32) == 10) { mode $chan + $+ $str(b,$numtok(%banmask,32)) %banmask  | unset %banmask }      
      }  
      inc %loop 1
    }
  }
  if (%banmask) { mode %chan + $+ $str(b,$numtok(%banmask,32)) %banmask }
}


Alias MuteBanMask { return ~q: $+ $address($1,2) }


alias badnick_alias {
  var %chan $1 , %nick $2
  if (%nick !ison %chan || $nick( %chan , %nick ,@&~%)) { halt }
  if ($len( %nick ) < 3 || ($calc($regex(%nick,/[A-Z]/g) * 100 / $len(%nick)) > 30))  {
    if (!$Timer($+(CheckNickZ,.,$network,.,%chan,.,%nick))) {   
      .Timer $+ $+(CheckNickZ,.,$network,.,%chan,.,%nick)  3 15 badnick_still_on_chan $unsafe(%chan) %nick  
    } 
  }
}

alias badnick_still_on_chan {
  inc $+(%,CheckWarnings,.,$network,.,$1,.,$2)
  if ($2 ison $1 && $($+(%,CheckWarnings,.,$network,.,$1,.,$2),2) < 3) { NOTICE $2  WARNING } 
  elseif ($($+(%,CheckWarnings,.,$network,.,$1,.,$2),2)  == 3 && $2 ison $1 ) { if ($MuteBanMask($2) !isban $1) { mode $1 +b $MuteBanMask($2) } | .Timer $+ $+(CheckNickZ,.,$network,.,$1,.,$2) off | unset % $+ $+(CheckWarnings,.,$network,.,$1,.,$2)  }
  elseif ($2 !ison $1) {  .Timer $+ $+(CheckNickZ,.,$network,.,$1,.,$2) off | unset $eval($+(%,CheckWarnings,.,$network,.,$1,.,$2),1)  }
}

29 5,286 Read More
Scripts & Popups Jump to new posts
Re: Join flood protection Simo 10/05/25 11:27 AM
yes u can by changing :

Code

if (%wildsite !isban %chan) { mode %chan +b %wildsite  }


to

Code

if (%wildsite !isban %chan) { ban -u $+ $duration(3h)  %chan %nick 2  }

22 31,640 Read More
Bug Reports Jump to new posts
Re: $urlget crash when URL contains credentials Khaled 09/05/25 09:02 AM
Thanks for your bug report. This issue has been fixed for the next version.
1 277 Read More
General Discussion Jump to new posts
Re: mIRC Servers list KindOne 08/05/25 03:43 PM
Mibbit shutdown - https://mibbit.com/
16 21,993 Read More
General Discussion Jump to new posts
mIRC is 30 years old billythekid 05/05/25 07:52 PM
from versions.txt

Quote
28/02/1995 - mIRC v2.1a

I couldn't see a post mentioning this so I guess it passed quietly. Doesn't time fly‽
0 145 Read More
Scripts & Popups Jump to new posts
Re: A little help with a ban Mairel 04/05/25 01:00 PM
It works. Thanks for your help Epic, I really appreciate it.
4 507 Read More
Connection Issues Jump to new posts
Re: Couldn't look up your hostname - Google Fiber Sat 04/05/25 08:09 AM
For IRC servers, it is not enough that your IP address can be resolved a hostname. The IRC server also checks that that hostname can be resolved back to that same IP address. That two-way check prevents hostname spoofing, because it is relatively easy to make a privately owned IP address resolve to, say, fbi.gov.

I would guess that in your case, the problem is in the host-to-IP part of the check. If that is indeed the case, only Google can fix that issue for you.
1 353 Read More
Scripts & Popups Jump to new posts
Re: Beginner bot script Fernet 01/05/25 03:36 PM
What is the bot purpose You look for?
1 229 Read More
Bug Reports Jump to new posts
Re: Unable to select text with cursor tweek 30/04/25 06:57 AM
It works that way as it has for as long as I can remember. Trust me it copied it. Just paste as normal.
1 331 Read More
Feature Suggestions Jump to new posts
Re: Editable Language Files OnurGVNGL 29/04/25 08:54 PM
Hello. I have translated many software's into Turkish, and finally, after the addition of editable localization support, I had the opportunity to translate the mIRC program, which has been the love of my youth, into Turkish. The translation was done via Resource Hack in version 7.81. However, as mentioned below, there are some areas that remain untranslated:

I couldn't find the source of the translation on Resource Hack ''Commands menu, channel modes (right clicked on channel), right click on nick and status'' (images are below)

Channel Modes
Commands
RightClickNick
RightClickStatus

Outside of these, everything is going quite well. The localized DLL file has been tested several times in the Resource Hack program to check for potential errors. So far, I haven't encountered any issues with visuals or meaning.

*The scan was performed using the /langdll -d command. The results are as follows:

Quote
Deleted:241
Added:
Added:0
Warnings:68
(To find warnings, Press Control+F and search for "Warning:")
Done

I will focus on this part, but I have no idea how to handle the translations below the image.

I'm around. OnurGVNGL
22 15,115 Read More
Scripts & Popups Jump to new posts
Re: BAN/QUIET Fernet 26/04/25 10:53 AM
Originally Posted by Simo
i believe i made some mistakes in the nick event ive posted this should fix it :

Code

on *:JOIN:#test,#chan1,#chan2,#chan3,#chan4,#chan5:{
  if ($nick($chan,$me,@%&~)) {
    if ($round($calc($regex($nick,/[A-Z]/g) / $regex($nick,/[A-Za-z]/g) * 100),0) > 40) {
      if ($+(~q:,$address($nick,2)) !isban $chan) { putmode $chan +b $+(~q:,$address($nick,2))  } 
    } 
  }
}



ON  *:nick: {
  var %loopnckz = 1
  while ( $comchan($newnick,%loopnckz) != $null )  {
    var %chan $v1   
    if (!$istok(#test #chan1 #chan2 #chan3 #chan4 #chan5 ,%chan,32)) { break }  	
    if ($nick(%chan,$me,@%&~)) {
      if ($round($calc($regex($newnick,/[A-Z]/g) / $regex($newnick,/[A-Za-z]/g) * 100),0) > 40) { 
        if ($newnick isvoice %chan) { putmode %chan -v $newnick }
        if ($+(~q:,$address($newnick,2)) !isban %chan) { putmode %chan +b $+(~q:,$address($newnick,2))  } 
      }
      inc %loopnckz
    }
  }
}




This option is not what I need: I can't understand about "regex" and all my other stuffs (WARN, TIMER,etc...) have been deleted.
Sorry but I prefer towork on my addon , not to have a new one that I can't edit.
Thanks a lot for help.
3 613 Read More
Developers Jump to new posts
Re: The First A.I. Trading Bot - level 1 darta1964 22/04/25 04:54 PM
Bravo! I would also be interested in doing some trading with artificial intelligence, but I have not been using MIRC for years? . As it works? Could you pass the script also privately please ?
2 2,625 Read More
Scripts & Popups Jump to new posts
Re: Nick change check from list Fernet 16/04/25 06:23 AM
Originally Posted by Simo
im not sure i understand the question.

OK. Let me try to explain...
I created a list of badwords in a text file badwords.txt:

duck
lussy
pass
button
--->bone<---


etc....

If an user write LOOK AT MY BONE he'll be banned because te word BONE is in the list of words.
But if he write LOOK AT MY FATBONE he won't be banned because the word FATBONE is not in the list

So I used wildcard:

*duck*
*lussy*
?ass*
*butt*
--->*bone*<---


So to cover what is wrote before or after the badword. In the case if he write LOOK AT MY FATBONE he should has to be banned because *bone* include everything wrote before or after (isin or iswm maybe?)
But it doesn't work.
And for nicks is the same: it works if someone wear a nick that has no wildcards in list. If an user wear LUSSY he'll be banned, but if he wear BIGLUSSY , nothing happen.
I hope Ibeen more clear.
Thanks
6 1,724 Read More
Scripts & Popups Jump to new posts
Re: Notice blocker MrGUD 12/04/25 01:00 PM
hi, how do you activate this script? where to enter ? please and thank you smile
5 1,191 Read More
Latest News Jump to new posts
mIRC 7.81 released Khaled 09/04/25 06:07 PM
Dear mIRC User,

mIRC v7.81 has been released today.

This is a small update that adds features and addresses a number of issues reported by users since the last release. It includes improvements, changes and fixes, including:

Added Follow Windows Dark Mode option to Display dialog.
Fixed server-specific settings not being loaded on startup.
Updated OpenSSL library to v3.0.16.
Changed Treebar non-focus selected item to use more visible color in dark mode.
Added custom dialog scroll properties pos N and page N.
Changed nickname auto-color feature to use improved contrast ratios.
Fixed DirectShow crash bug relating to sound initialization on startup.
Fixed Aero theme bug when Windows 11 transparency effects are enabled.
Fixed Alt+X not working to toggle the maximized state for desktop @windows.
Updated CA root certificates cacert.pem file.

How to upgrade?
mIRC is distributed in an installer that installs mIRC on your computer for you. Simply download and run the installer from the download page on the mIRC website. Follow the instructions the installer gives to you. When upgrading all your old settings and scripts will stay as they were, if you want that. Read the questions the installer asks with care and nothing can go wrong. You will be chatting with the new mIRC in no time. If you get stuck or if you want to find out more about a certain feature, just click on a Help button or browse the Help file and you should find lots of hints to help you out.

Where to download?
As always, the latest version of mIRC can be downloaded from the download page on the mIRC website.

Registering mIRC
As you know, mIRC can be downloaded freely and evaluated for 30 days. If you find that you enjoy using mIRC, it would be great and much appreciated if you registered your copy. This licenses you to use your copy of mIRC and helps to support our continued work on mIRC. You can find out how to register here.

Full list of Fixes, Changes and Additions.
For a more detailed list of recent changes, please see the whatsnew.txt file. You will need to read through the help file to learn more about these changes and their impact. Some changes are obvious, some need getting used to - please take your time to play with them and see how they work. May we invite you to use these forums for all questions you might have? The forums offer great help with everything related to mIRC!

Thanks for using mIRC, have fun on IRC!
0 937 Read More
mIRC Help Jump to new posts
Re: Special Characters Fernet 08/04/25 02:16 PM
I known about unicode, but haven't found the same codes.
2 796 Read More
Scripts & Popups Jump to new posts
Re: Send warning on notice event Fernet 08/04/25 02:14 PM
Ok sir. I will and will inform You
Thank You very much wink
15 3,430 Read More
Bug Reports Jump to new posts
mIRC beta Khaled 05/04/25 03:10 PM
There are no betas available for testing at this time. Please download the latest version of mIRC from the mIRC website.
1 434,108 Read More
Bug Reports Jump to new posts
Re: Use of a deprecated method Khaled 03/04/25 08:06 PM
Thanks for your bug report and the link. I haven't seen this reported when compiling in Visual Studio 2017/2022, however I have gone ahead and switched out the use of gethostname() to the method recommended in the link.
1 490 Read More
Page 1 of 7 1 2 3 4 5 6 7