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: login conect script Iire 6 hours ago
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 109 Read More
Scripts & Popups Jump to new posts
Re: Check Stored Hosts on JOIN Iire Yesterday at 06:11 AM
Originally Posted by Iire
You may also want to consider naming and dedicating the table itself to netsplit-affected user storage for a given network, rather than using an all-purpose table name and encoding that information in the individual items' names.
...is how that sentence was meant to end. =r
2 267 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 170 Read More
Bug Reports
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 227 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 188 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 117 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,265 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,628 Read More
Bug Reports
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 276 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,989 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 142 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 501 Read More
Connection Issues
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 351 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 226 Read More
Bug Reports
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 325 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,085 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 603 Read More