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