Snotice IRCOP whois notify

By BigSteve on Nov 08, 2010

as the title says, thanks also goes to LucSatise for help coding it :}

======================================
= Contact info!!                     =
= Server: irc.lightsys.net:6667   =
= Channel: #chat                     =
= Nick: BigSteve/BigSteveaFK         =
= Email: BigStevedw@hotmail.co.uk    =
======================================

#whoisnotice on
on *:SNOTICE:*whois on you*: {
  if (!%x) { set -u10 %x on
    echo -a [ALERT]  $2 ( $address($2,2) ) did a whois on you on server [ $server ] at [  $time(.:h:nn:sstt:.) ,  $date ] .
    inc %now
    NOTICE $2 Hi there $2 $+ . I am an Oper on this server with Level of $operlevel $+ . Can I help you with anything?
  } 
}
alias operlevel {
  if (N isincs $usermode) { return Network Admin }
  elseif (a isincs $usermode) { return Services Admin }
  elseif (A isincs $usermode) { return Server Admin }
  elseif (C isincs $usermode) { return CoAdmin }
  elseif (o isincs $usermode) { return Global Operator }
  elseif (O isincs $usermode) { return Local Operator }
}
#whoisnotice end
Menu channel,status {
  Whois Watchis
  .Whois Count: echo -a 9********11,1I 15,1have been whois'd 8,1[ %now ] 15,1times12,1.9*********
  .Enable Whois Noticer: /enable #whoisnotice
  .Disable Whois Noticer: /disable #whoisnotice
}

Comments

Sign in to comment.
BigSteve   -  Nov 23, 2010

Jethro_ why dont you come and see me on irc.lightsys.net:6667
would be great to see you and others from here on there

 Respond  
Jethro   -  Nov 19, 2010

Actually if should have been $me instead:

on *:SNOTICE:*whois on you*: {
if ($nick(#,$me,Wq&o)) && (!%x) {
 set -u10 %x on
 ;the rest of code here

I myself don't use unrealircd or regular type of ircd networks, so if any discrepancy applies to my code, please correct me.

The above code shall work. Basically that if condition checks if the client running the code is with +W set, or the user is an owner, admin, and op.

 Respond  
BigSteve   -  Nov 19, 2010

ty Jethro_ where would I put that bit of code ?

 Respond  
Jethro   -  Nov 19, 2010

I think this is what you're looking for:

if ($nick(#,$nick,W)) {
 Respond  
BigSteve   -  Nov 19, 2010

He could do it without the alias like this

could I also add this in

 if ($nick = +W)

would that do anything Jehtro_ & napa182

 Respond  
BigSteve   -  Nov 15, 2010

I did say it was IRCOP if you look at the name of the snippet >.< please actually look before you comment XD lol

 Respond  
BigSteve   -  Nov 09, 2010

meh I like how mine does it it works and thats all that matters

 Respond  
Jethro   -  Nov 08, 2010

He could do it without the alias like this:

on *:SNOTICE:*whois on you*: {
  if (!%x) { set -u10 %x on
    var %o $replacecs($usermode,N,Network Admin,a,Services Admin,A,Server Admin,C,CoAdmin,o,Global Operator,O,Local Operator)
    echo -a [ALERT]  $2 ( $address($2,2) ) did a whois on you on server [ $server ] at [  $time(.:h:nn:sstt:.) ,  $date ] .
    inc %now
    NOTICE $2 Hi there $2 $+ . I am an Oper on this server with Level of %o $+ . Can I help you with anything?
  } 
}
 Respond  
LucSatise   -  Nov 08, 2010

yeh im sure I am due credit here steve... since i came up with the $operlevel part

 Respond  
Jethro   -  Nov 08, 2010

Oh I see. I personally don't frequent UnrealIRCD related servers, so I don't know much about their protocols. Reviewing the code, I believe he can use $replacecs for the operlevel alias:

alias operlevel {
  return $replacecs($usermode,N,Network Admin,a,Services Admin,A,Server Admin,C,CoAdmin,o,Global Operator,O,Local Operator)
}
 Respond  
napa182   -  Nov 08, 2010

Jethro_

This snippet is ircop specific.

True with his reply of

Hi there $2 $+ . I am an Oper on this server with Level of $operlevel

but take that part out and if the network admins of the server are nice they can give users user mode +W so it will work. well on most UnrealIRCd servers. =P

 Respond  
Jethro   -  Nov 08, 2010

This snippet is ircop specific.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.