mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Mairel #273567 03/08/25 11:02 AM
Joined: May 2022
Posts: 135
F
Vogon poet
Offline
Vogon poet
F
Joined: May 2022
Posts: 135
You can edit popup.ini:

Code
[bpopup]
nX=Query:/query $$1
nX=Notice:/notice $$1 $$?="Insert msg:" 
nX=/whois $$1
nX=Invite:/invite $$1 $$?="Insert channel:"

nX = You can choose where You want it to appear in popup depending on other items

Last edited by Fernet; 03/08/25 02:35 PM.
Mairel #273568 03/08/25 01:50 PM
Joined: Jan 2012
Posts: 366
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 366
Originally Posted by Mairel
The script issue is that now when the ban is triggered, from any of the three places (nicklist, script input, and script badwords), this appears in the status window: «BestGuest DE set by is connecting from Germany»
If the line you specified "BestGuest DE set by is connecting from Germany" appears constantly after each "Whois" request when the command bacc is used, then you can also try to hide it by adding to the code with the handler raw the following line: if (*set by is connecting from* iswm $2-) { haltdef }

As a result, the code part from #Post273557 should look like this:
Code
#islogged off
raw *:*:{
  if ($numeric isnum 307-320) || ($numeric isnum 615-617) { haltdef }
  if ($istok(301 330 335 338 378 379 671,$numeric,32)) { haltdef }
  if (*set by is connecting from* iswm $2-) { haltdef }
  if (*is logged* iswm $2-) { set %islogged $3 | haltdef }
  if ($numeric == 318) {
    $iif(%islogged,ban_reg_user $2 $v1,ban_noreg_user $2)
    unset %islogged | .disable #islogged
  }
}
#islogged end

〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰〰

Originally Posted by Mairel
You could move the new whois from where it is now, below, placing it in place of the previous Popup whois (which I should now delete), among the "Query" and "Notice" entries, as it is in the second image?
Yes. Since the menu item and its commands were specified directly in the script, the location of the item when calling the pop-up menu window will be to others, depending on the script's ordinal number in the list of all loaded scripts. At the same time, all menus from the "Popups" tab have priority, so these menu items will always be above the menu items that were created in the "Remote" tab. If you want to control the "Whois" command from the menu in the "Popups" tab, then the part of the code that is responsible for the menu must be removed from the script in the "Remote" tab, and the command .enable #replace_whois must be added before the command whois $$1 $$1 in the "Popups" menu, separating the two commands with the | symbol.

So, this part of the code from #Post273563 in the "Remote" tab needs to be removed:
Code
menu nicklist {
  — $1 — : .enable #replace_whois | whois $$1 $$1
}

And this is what the code fragment for the "Popups" tab (Nick List) will look like:
Code
Query: query $$1
Notice: notice $$1 $$?="Insert msg:"
Whois: .enable #replace_whois | whois $$1 $$1
Invite: invite $$1 $$?="Insert channel:"

Here you can easily swap/move/juggle the lines to change the position of a particular menu item.


P.S. If the problem with displaying strings from "Whois" has not been solved, then leave the name of the IRC network, server and port where you are using the script, so that I can connect to test and solve the problem. You can also contact me by connecting to my IRC server on the #Code channel, my nick is always online thanks to the BNC service and sometimes I go to the chat to provide support/help with code.


🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Epic #273571 03/08/25 06:51 PM
Joined: Dec 2024
Posts: 29
M
Mairel Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2024
Posts: 29
Okay, the graphics "problem" has been fixed, thanks.

Unfortunately @Epic, bans from the nickname list, input, and badwords still show that message in the status, so I'd say it's not fixed here.

The network I'm most often on is Simosnap, irc.simosnap.com +6697

@Fernet, thanks to you too for the suggestions : )

Mairel #273575 04/08/25 07:30 AM
Joined: Jan 2012
Posts: 366
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 366
When connecting to your network, I see the following server response about blocking:
Quote
Closing link: (ident@host) [Access from your country is restricted, visit http://support.simosnap.com for help]

It appears that access to this network is severely restricted/denied for users with IP addresses from other countries, and only a small circle of people, friends or users from a few permitted countries can connect to the chat. Therefore, I will not be able to help you solve your problem by performing all the necessary script tests while I am directly on your network.


The last thing I can suggest is to put this one-line code in a new/clean script file in the "Remote" tab: raw *:*: echo -a 04 $numeric $1-

Next, test your scripts, and if you see red lines with numbers at the beginning of the text, then copy them and publish them here for the report.
After this, the one-line code will need to be removed so that it does not interfere with the normal display of messages.


🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Epic #273576 04/08/25 11:58 AM
Joined: Dec 2024
Posts: 29
M
Mairel Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2024
Posts: 29
Okay, I uploaded that code and tested the scripts,
in all three, and when the ban kicks in, this is what comes out:

311 Niick BestGuest rulers SimosNap-87ed5q.retail.thanthis.de * ...
312 Niick BestGuest lab.simosnap.com SBG 3 Lab SimosNap IRC Server
344 Niick BestGuest DE is connecting from Germany
330 Niick BestGuest MyNick is logged in as
671 Niick BestGuest is using a secure connection
318 Niick BestGuest End of /WHOIS list.


Also, this keeps appearing in the status:

BestGuest DE set by is connecting from Germany

But it's not in red and there's no number at the beginning.

Last edited by Mairel; 04/08/25 01:01 PM.
Mairel #273577 04/08/25 06:35 PM
Joined: Jan 2012
Posts: 366
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 366
Here are some more diagnostic methods, that can help determine the source of the problem:

1. Similar to the previous method, place this one-line code in a new/clean script file in the "Remote" tab: on *:PARSELINE:in:*: echo -a 10TEST04 : $parseline

Next, test your scripts, and if you see red lines with the word "TEST" at the beginning of the text, then copy and publish here all these lines or only those that may be related to the problem. Once you've completed your testing or decided it's enough, you'll want to remove this one-line code so it doesn't interfere with the normal display of messages.

2. Try connecting to a few other known IRC networks from mIRC's internal list and do the same testing to make sure this line only appears on your network.

3. If this annoying line appears on all IRC networks, try to make sure it's not being called by some other script, long ago or recently installed, that you forgot about or just didn't know was doing this. You can use the search in the script editor by pressing the key combination "CTRL+F" and indicate the word(s), for example "set by is connecting from".

Note: When testing, it is advisable to be on only one empty or your favorite channel to avoid unnecessary junk messages that will quickly clutter your window.


🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Epic #273578 05/08/25 11:00 AM
Joined: Dec 2024
Posts: 29
M
Mairel Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2024
Posts: 29
I did this other test, that message appears only on Simosnap. Here's what came out in detail:

TEST : @time=2025-08-05T10:23:05.996Z :resurrection.simosnap.com 311 MyNick OtherNick1 OtherNick2 SimosNap-87ed5q.retail.thenthis.de * :...
TEST : @time=2025-08-05T10:23:05.996Z :resurrection.simosnap.com 312 MyNick OtherNick1 lab.simosnap.com :SBG 3 Lab SimosNap IRC Server
TEST : @time=2025-08-05T10:23:05.996Z :resurrection.simosnap.com 344 MyNick OtherNick1 DE :is connecting from Germany
TEST : @time=2025-08-05T10:23:05.996Z :resurrection.simosnap.com 330 MyNick OtherNick1 OtherNick2 :is logged in as
TEST : @time=2025-08-05T10:23:05.996Z :resurrection.simosnap.com 671 MyNick OtherNick1 :is using a secure connection
TEST : @time=2025-08-05T10:23:05.996Z :resurrection.simosnap.com 318 MyNick OtherNick1 :End of /WHOIS list.
TEST : @account=MyNick;time=2025-08-05T10:23:06.251Z :MyNick!ID@SimosNap-ud3fed.bla.bla.okokok.net MODE #Try123 +bb *!*@SimosNap-87ed5q.retail.thenthis.de :R:OtherNick2
TEST : @time=2025-08-05T10:23:06.264Z :lab.simosnap.com KICK #Try123 OtherNick1 :Banned
TEST : @time=2025-08-05T10:23:15.127Z PING :ZNC

While when I tried it on GameSurge this came out:

TEST : :Prothid.NY.US.GameSurge.net 311 MyNick OtherNick1 ~OtherNick1 OtherNick1.user.gamesurge * :...
TEST : :Prothid.NY.US.GameSurge.net 319 MyNick OtherNick1 :#Try123
TEST : :Prothid.NY.US.GameSurge.net 312 MyNick OtherNick1 *.GameSurge.net :The GameSurge IRC Network
TEST : :Prothid.NY.US.GameSurge.net 330 MyNick OtherNick1 OtherNick1 :is logged in as
TEST : :Prothid.NY.US.GameSurge.net 318 MyNick OtherNick1 :End of /WHOIS list.
TEST : :MyNick!~R4klbs3o@gamesurge-8fb37c1b.retail.thenthis.de MODE #Try123 +bb *!*@OtherNick1.user.gamesurge *!*@R:OtherNick1

I haven't tried other networks because if I have to do it I have to register the nickname, if necessary I'll do it

Mairel #273579 05/08/25 12:10 PM
Joined: Jan 2012
Posts: 366
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 366
And more one method is to try entering in the "Editbox" field the command: /debug -p @debug

After this, a window named "@debug" should open to display debugging information. Next, test the scripts again on your network. After testing is complete copy from the "@debug" window and publish here all the lines or only those that may be relevant to your problem.

Explanation: In raw messages the text is displayed in its original unmodified form, along with the numeric value of the event, and in the debug information we can see almost everything that mIRC receives and sends, with the full data set on each line in extended format, depending on the IRCd settings.

The goal is to find the corresponding/similar line in some event or the reason that causes this line to be displayed: "BestGuest DE set by is connecting from Germany".


🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Epic #273580 05/08/25 12:50 PM
Joined: Dec 2024
Posts: 29
M
Mairel Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2024
Posts: 29
With debugging this comes out:

<- @time=2025-08-05T12:37:55.340Z PING :ZNC
-> resurrection.simosnap.com PONG :ZNC
<- @account=OtherNick1;time=2025-08-05T12:37:56.721Z :BestGuest!other@SimosNap-86ec5q.retail.thenthis.de PRIVMSG #Try123 :ban1
-> resurrection.simosnap.com WHOIS BestGuest
<- @time=2025-08-05T12:37:56.902Z :resurrection.simosnap.com 311 MyNick BestGuest OtherNick1 SimosNap-86ec5q.retail.thenthis.de * :...
<- @time=2025-08-05T12:37:56.902Z :resurrection.simosnap.com 312 MyNick BestGuest lab.simosnap.com :SBG 3 Lab SimosNap IRC Server
<- @time=2025-08-05T12:37:56.902Z :resurrection.simosnap.com 344 MyNick BestGuest DE :is connecting from Germany
<- @time=2025-08-05T12:37:56.902Z :resurrection.simosnap.com 330 MyNick BestGuest OtherNick1 :is logged in as
<- @time=2025-08-05T12:37:56.902Z :resurrection.simosnap.com 671 MyNick BestGuest :is using a secure connection
<- @time=2025-08-05T12:37:56.902Z :resurrection.simosnap.com 318 MyNick BestGuest :End of /WHOIS list.
-> resurrection.simosnap.com MODE #Try123 +bb *!*@SimosNap-86ec5q.retail.thenthis.de R:OtherNick1
<- @account=MyNick;time=2025-08-05T12:37:57.269Z :MyNick!Ok@SimosNap-ud3fed.this.and.this.net MODE #Try123 +bb *!*@SimosNap-86ec5q.retail.thisthen.de :R:OtherNick1
<- @time=2025-08-05T12:37:57.279Z :lab.simosnap.com KICK #Try123 BestGuest :Banned

Mairel #273581 05/08/25 01:45 PM
Joined: Jan 2012
Posts: 366
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 366
Stop. I looked again attentively/meticulously at the code with the handler raw and found that for some reason it doesn't specify the numeric value "344" among all the listed ones, so that it would also be hidden. Hmm... I thought I listed all possible numeric values for strings associated with the "Whois" answer. This may be because in my network the string with the name of the country from which the user connected is displayed with a different numeric value, and in your network with this one. Additionally, these values may differ depending on the IRCd and modules used, or due to individual settings that may not match the general standard.

Try adding this number to this line of code between other numbers separated by spaces: if ($istok(301 330 335 338 344 378 379 671,$numeric,32)) { haltdef }

As a result, the code part from #Post273557 should look like this:
Code
#islogged off
raw *:*:{
  if ($numeric isnum 307-320) || ($numeric isnum 615-617) { haltdef }
  if ($istok(301 330 335 338 344 378 379 671,$numeric,32)) { haltdef }
  if (*is logged* iswm $2-) { set %islogged $3 | haltdef }
  if ($numeric == 318) {
    $iif(%islogged,ban_reg_user $2 $v1,ban_noreg_user $2)
    unset %islogged | .disable #islogged
  }
}
#islogged end


🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Epic #273583 06/08/25 12:10 PM
Joined: Dec 2024
Posts: 29
M
Mairel Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2024
Posts: 29
I updated the code and it works, the message no longer appears.

I didn't notice the missing 344 value either; even if I looked more carefully at the whois, I might have noticed it, damn it.

I'm glad, though, that it wasn't due to other scripts; it would have been a pain to find the cause.

Now I'll start testing the scripts in daily use, I'll see if there's anything else wrong, if everything's ok, if there are any gaps and so on. If so, I'll update this post.

Thank you so much for your effort @Epic, you're great, I really appreciated it.

Mairel #273593 09/08/25 10:52 AM
Joined: Dec 2024
Posts: 29
M
Mairel Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2024
Posts: 29
Update:

I added another missing value to this code, 350:

Code
#islogged off
raw *:*:{
  if ($numeric isnum 307-320) || ($numeric isnum 615-617) { haltdef }
  if ($istok(301 330 335 338 344 [color:#FF0000]350[/color] 378 379 671,$numeric,32)) { haltdef }
  if (*is logged* iswm $2-) { set %islogged $3 | haltdef }
  if ($numeric == 318) {
    $iif(%islogged,ban_reg_user $2 $v1,ban_noreg_user $2)
    unset %islogged | .disable #islogged
  }
}
#islogged end

Since it caused this writing to appear continuously:

"Nick" * * is connected via the webircgateway WebIRC gateway

Mairel #273595 09/08/25 04:40 PM
Joined: Jan 2012
Posts: 366
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 366
Yes, you can add to this line of code any numeric values of messages from the "Whois" answer that were not discussed earlier, but appeared later under different circumstances and you want those messages to be hidden as well.

Please fix/edit the code in your post, as it contains a color tag [color] that cannot be used inside a multi-line code. If someone copies this piece of code from your post and tries to use it, it may result in the script breaking or an error, or at best, the message with the numerical value "350" will not be hidden.

It should be like this:
Code
#islogged off
raw *:*:{
  if ($numeric isnum 307-320) || ($numeric isnum 615-617) { haltdef }
  if ($istok(301 330 335 338 344 350 378 379 671,$numeric,32)) { haltdef }
  if (*is logged* iswm $2-) { set %islogged $3 | haltdef }
  if ($numeric == 318) {
    $iif(%islogged,ban_reg_user $2 $v1,ban_noreg_user $2)
    unset %islogged | .disable #islogged
  }
}
#islogged end


🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Epic #273602 12/08/25 06:46 AM
Joined: Dec 2024
Posts: 29
M
Mairel Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2024
Posts: 29
I didn't realize it came out like that...

It won't let me edit the post anyway, thanks for posting the right one.

Page 2 of 2 1 2

Link Copied to Clipboard