|
Joined: Jan 2020
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Jan 2020
Posts: 7 |
Hello! I need a little help because I don't understand mirc to explain more clearly here what I did: ON *:JOIN:#: {
set %ip *!*@203.212.27.190
if ($address($nick,2) == %ip) { /msg mynick <message-test> }
} ..and the result is that as the apex in question appears on the channel, I get a PM with the text I tested it with an ip and it works. So now I need: Add a new ip to get notified. In place of , the nickname that automatically logs the ip will be released automatically. Since it has not been tested with multiple ip, I do not know if a new PM will be received for each individual ip and, if it can be in one window for all, or possibly in Status, where the info about the added Nicknames on Notify is received. I did not explain it very difficult ...
|
|
|
|
Joined: Jan 2004
Posts: 2,127
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,127 |
You can use $me to always be your own nick. The method that differs as little as possible from your method would be where %ip contains mainy addresses but you must /set the %ip variable elsewhere then have the event be like: elsewhere: /set %ip *!*@203.212.27.190 *!*@123.123.12.123 *!*@321.321.32.321
ON *:JOIN:#: {
if ($istok(%ip,$address($nick,2),32)) {
/msg $me <message-test>
var %a $findtok(%ip,$address($nick,2),1,32)
set -s %ip $deltok(%ip,%a,32)
}
}
You can remove the -s if you don't need to see how many IP remain in the list
|
|
|
|
Joined: Jan 2020
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Jan 2020
Posts: 7 |
You're a great maroon, now I have this: ON *:JOIN:#sex: {
if ($istok(%ip,$address($nick,2),32)) {
/msg $me $timestamp 4 $nick 10 с IP: 4 $address 10 влезе в канал: $chan
var %a $findtok(%ip,$address($nick,2),1,32)
set %ip *!*@t3vik5.ip.btc-net.bg $deltok(%ip,%a,32)
}
} 1. Can it be done and when it goes offline? 2. The other thing that is a little annoying is that it shows a double result.. [img] http://mesm.snimka.bg/other/my-test.5164802.39240304.big[/img]
|
|
|
|
Joined: Jan 2004
Posts: 2,127
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,127 |
I do not understand your question #1 As for the double result, that's because you ask it show $nick then $address The $address looks like nick!userid@hostname so if you want to have it be shorter, you can alter it. If you want userid@hostname change $address to if you want just the portion following the @ then change $address to
|
|
|
|
Joined: Jan 2020
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Jan 2020
Posts: 7 |
Sorry maroon Google translate ... I'll try again ...  The same code as ON *:QUIT:#sex: { ..... Thanks for your patience! I'll try double-serving and post if it's useful to others 
|
|
|
|
Joined: Jan 2004
Posts: 2,127
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,127 |
The ON QUIT event does not have a channel attached to it, so if you are in more than 1 channel, you must first verify if the person was in the channel being monitored. ON *:QUIT: {
if (!$nick(#channelname,$nick)) return
same code as in the JOIN event goes here
}
|
|
|
|
Joined: Jan 2020
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Jan 2020
Posts: 7 |
Is this what you mean: ON *:QUIT: {
if (!$nick(#sex,$nick)) return
ON *:JOIN:#: {
if ($istok(%ip,$address($nick,2),32)) {
/msg $me $timestamp 4 $nick 10 с IP: 4 $address 10 влезе в канал: $chan
var %a $findtok(%ip,$address($nick,2),1,32)
set %ip *!*@t3vik5.ip.btc-net.bg *!*@evt5r8.ip.btc-net.bg $deltok(%ip,%a,32)
}
}
} I get this:  [13:01:45] * ON Unknown command [13:02:15] * ON Unknown command [13:02:20] * ON Unknown command [13:02:26] * ON Unknown command [13:02:27] * ON Unknown command
|
|
|
|
Joined: Jan 2004
Posts: 2,127
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,127 |
Put the code that's IN the JOIN event, not put the ON JOIN itself there too. Take out the ON JOIN line from within ON QUIT, and also take out the matching end curly brace too.
If you want to be alerted when people QUIT, you may also wish to also be alerted when they click to close the channel window without quitting from the network too. The syntax to handle the PART event is the same as for the JOIN event. You would copy the entire ON JOIN event below it, then change :JOIN: into :PART:
But only make 1 change at a time, to be certain each change is correct. While the remote editor is open, click in the upper right corner on the checkmark within the circle so it verifies if your matching curly braces are correct.
|
|
|
|
Joined: Jan 2020
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Jan 2020
Posts: 7 |
Thank you very much maroon you are great! I put up ready codes, if they are helpful to someone else. ![[Linked Image from media.snimka.bg]](http://media.snimka.bg/s1/6499/039241395.jpg) -----------------------------------------------------------
ON *:JOIN:#: {
if ($istok(%ip,$address($nick,2),32)) {
/msg $me $timestamp 4 $nick 10 with IP: 4 $address 10 JOIN: $chan
var %a $findtok(%ip,$address($nick,2),1,32)
set %ip *!*@t3vik5.ip.btc-net.bg *!*@t3dsg7.ip.btc-net.bg $deltok(%ip,%a,32)
}
}
------------------------------------------------------------
ON *:QUIT: {
if (!$nick(#sex,$nick)) return
if ($istok(%ip,$address($nick,2),32)) {
/msg $me $timestamp 4 $nick 10 with IP: 4 $address 10 QUIT: $chan
var %a $findtok(%ip,$address($nick,2),1,32)
set %ip *!*@t3vik5.ip.btc-net.bg *!*@t3dsg7.ip.btc-net.bg $deltok(%ip,%a,32)
}
}
--------------------------------------------------------------
ON *:PART:#sex: {
if ($istok(%ip,$address($nick,2),32)) {
/msg $me $timestamp 13 $nick 10 with IP: 13 $address 10 PART: $chan
var %a $findtok(%ip,$address($nick,2),1,32)
set %ip *!*@t3vik5.ip.btc-net.bg *!*@t3dsg7.ip.btc-net.bg $deltok(%ip,%a,32)
}
}
---------------------------------------------------------------
|
|
|
|
|