egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Kill 1st Gline 2nd
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
CrazyCat
Owner


Joined: 13 Jan 2002
Posts: 601
Location: France

PostPosted: Sat Aug 22, 2020 10:11 am    Post subject: Reply with quote

the recvq is global for the server, the message could be in channel, in private or just sent to the server...
One day, I made a script to remove all glines so it did a lot of /gline -*@ip.address. It provocs exceed recvq without being on a channel.
_________________
https://www.eggdrop.fr - French speaking IRC network
Back to top
View user's profile Send private message Visit poster's website
ComputerTech
Op


Joined: 22 Feb 2020
Posts: 192
Location: Northern Ireland

PostPosted: Sat Aug 22, 2020 12:12 pm    Post subject: Reply with quote

Yeah, but how would i make the bot catch that global server notice, and make it put it on a channel? Confused
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
simo
Owner


Joined: 22 Mar 2015
Posts: 514

PostPosted: Sat Aug 22, 2020 6:24 pm    Post subject: Reply with quote

you cant cause when they get disconnected they get disconnected from server and not from specific channels


ComputerTech wrote:
Yeah, but how would i make the bot catch that global server notice, and make it put it on a channel? Confused


and what does: make it put it on a channel mean ?
_________________
Coming together is a beginning, staying together is progress, working together is succes.
Back to top
View user's profile Send private message
ComputerTech
Op


Joined: 22 Feb 2020
Posts: 192
Location: Northern Ireland

PostPosted: Sun Aug 23, 2020 5:23 pm    Post subject: Reply with quote

to output onto the channel using, e.g putserv Razz
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CrazyCat
Owner


Joined: 13 Jan 2002
Posts: 601
Location: France

PostPosted: Sun Aug 23, 2020 5:47 pm    Post subject: Reply with quote

ComputerTech wrote:
to output onto the channel using, e.g putserv Razz

But WICH channel ? If you want to output on an admin channel, just define your channel in the script. Or hard-code it in your putserv.
Anyway, no script (or human oper) can see a recvq exceed and send a message to a channel in which was the killed user.
_________________
https://www.eggdrop.fr - French speaking IRC network
Back to top
View user's profile Send private message Visit poster's website
ComputerTech
Op


Joined: 22 Feb 2020
Posts: 192
Location: Northern Ireland

PostPosted: Tue Sep 08, 2020 10:36 am    Post subject: Reply with quote

Yeah, it seems i meant, that all kills made by the bot, will be sent to a specific channel.

E.g #admin will show all kills made by the eggdrop. so i changed your script to this.

Code:

namespace eval badguy {

   variable bad
   
   bind flud - pub flud:ban
   
   proc flud:ban { n u h t c } {
      if {(![info exists ::badguy::bad($u)])} { set ::badguy::bad($u) 0 }
      incr ::badguy::bad($u)
      switch $::badguy::bad($u) {
         1 {
            putquick "privmsg $n :You Are Flooding/Spamming, Please Stop Or You Will Be Network Banned"
            putserv "privmsg #admin :warning, Flood Happening in $c By $n"
         }
         2 {
            putquick "KILL $n Spamming is not allowed on TechNet"
            putserv "privmsg #admin :Kill due to flood in $c By $n"
         }
         3 {
            putnow "WHOIS $n"
            unset ::badguy::bad($u)
         }
      }
      return 1
   }
   
   bind raw - 378 flud:gline
   proc flud:gline {from kw text} {
      set host [lindex [split $text " "] end]
      putnow "gzline *@$host +30m :Network flood"
      putserv "privmsg #admin :Gzline, Flood Happening in $c By $n"
   }
}


I havent tested it yet, but will in a few Razz
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CrazyCat
Owner


Joined: 13 Jan 2002
Posts: 601
Location: France

PostPosted: Tue Sep 08, 2020 12:04 pm    Post subject: Reply with quote

Your privmsg in flud:gline proc won't work.
$c (I guess channel) and $n (nick ?) aren't defined.
You can peharps get nick fro $text (not really remember how is the raw 378 format), but you'll NEVER got the channel.
_________________
https://www.eggdrop.fr - French speaking IRC network
Back to top
View user's profile Send private message Visit poster's website
ComputerTech
Op


Joined: 22 Feb 2020
Posts: 192
Location: Northern Ireland

PostPosted: Tue Sep 08, 2020 3:17 pm    Post subject: Reply with quote

Oh, i did not notice that CrazyCat, thank you for pointing that out Very Happy

i guess i will do without pm'g #admin the origin channel on flud-gline *shrug*

Thanks Again CrazyCat
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber