Can someone fixed or rewrite this my code to work pls?
Here is my code:
on *:op:#: {
if ($istok(#freeirc #Official #test1,$chan,32)) {
if ($nick == X) || ($nick == *.undernet.org) { return }
if ($nick == $me) { Notice }
}
}
alias Notice {
whois $nick
}
raw 311:*: {
if (*users.undernet.org iswm $4) && ($nick == $7) { /onotice $chan - $+ @ $+ $chan $+ - $nick ( $+ $7 $+ ) deopped: $opnick | /notice $opnick You're deopped by $nick ( $+ $7 $+ ) on $chan | return }
else { /onotice $chan - $+ @ $+ $chan $+ - $nick ( $+ $nick $+ ) opped: $opnick | /notice $opnick You're opped by $nick ( $+ $nick $+ ) on $chan }
}
I want that code do this:
1. When some one/me/X/*.undernet.org Op anyone in #freeirc #Official, if:
+ X or *.undernet.org sets mode +o everyone then bot do nothing (return)
+ Me or every Nickname do sets mode +o in channels, then my bot notice to all Ops in that chan.
But:
Example: if mynick is Kenny and my address is ~Kenny@123.123.123.123, when i login to X then my host is ~Kenny@Kenny.users.undernet.org
Now i change my nick to Robert (my host still ~Kenny@Kenny.users.undernet.org), but when Robert sets mode +o, i want my bot will notice like this:
@Ops -@$chan- Robert (Kenny) opped: $opnick | notice $opnick You're opped by Robert (Kenny) on $chan
Thank you for help
This is my rawlog on raw 311:
<- 04/09/23 09:28:45 - :dallas.tx.us.undernet.org 311 Robert Robert ~Kenny Kenny.users.undernet.org * :Kenny
<- 04/09/23 09:28:45 - :dallas.tx.us.undernet.org 319 Robert Robert :#undernet @#test1 @#freeirc @#userbot @#diaspora @#irccloud
<- 04/09/23 09:28:45 - :dallas.tx.us.undernet.org 312 Robert Robert dallas.tx.us.undernet.org :Psychz Undernet Server
<- 04/09/23 09:28:45 - :dallas.tx.us.undernet.org 330 Robert Robert Kenny :is logged in as
<- 04/09/23 09:28:45 - :dallas.tx.us.undernet.org 338 Robert Robert ~Kenny@113.23.49.3 113.23.49.3 :Actual user@host, Actual IP
<- 04/09/23 09:28:45 - :dallas.tx.us.undernet.org 317 Robert Robert 32477 1680343544 :seconds idle, signon time
<- 04/09/23 09:28:45 - :dallas.tx.us.undernet.org 318 Robert Robert :End of /WHOIS list.