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 

it's possible?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
ORATEGOD
Voice


Joined: 08 Jun 2020
Posts: 33

PostPosted: Mon Oct 17, 2022 8:36 pm    Post subject: it's possible? Reply with quote

Greetings friends, it is possible to transform this *.mrc into a TCL for an eggdrop on IRCops level



Code:
######################
# Restricted channel #
######################


on *:join:#CHAN:{ kill $nick -Restrict channel- (Kill: %totalkill $+ )
  .topic #CHAN Restricted channel, DO NOT enter - Total victims: %totalkill
}
inc % %totalkill
}


Thank you
Back to top
View user's profile Send private message AIM Address
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1058
Location: France

PostPosted: Tue Oct 18, 2022 4:51 am    Post subject: Reply with quote

Read http://forum.egghelp.org/viewtopic.php?t=6236

And depending on your ircd, you can use spamfilter to do that.
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
simo
Owner


Joined: 22 Mar 2015
Posts: 969

PostPosted: Tue Oct 18, 2022 8:25 am    Post subject: Reply with quote

i assume you use Unrealircd

https://github.com/unrealircd/unrealircd/blob/unreal60_dev/doc/conf/examples/example.conf#L365-L370
Back to top
View user's profile Send private message
ORATEGOD
Voice


Joined: 08 Jun 2020
Posts: 33

PostPosted: Tue Oct 18, 2022 2:59 pm    Post subject: Reply with quote

CrazyCat wrote:
Read http://forum.egghelp.org/viewtopic.php?t=6236

And depending on your ircd, you can use spamfilter to do that.



Thank you .... for the dimension .... I will keep it in mind for future messages

(excuse my bad english)
Back to top
View user's profile Send private message AIM Address
ORATEGOD
Voice


Joined: 08 Jun 2020
Posts: 33

PostPosted: Tue Oct 18, 2022 3:18 pm    Post subject: Reply with quote

Searching... found a TCL from CrazyCat.

In which +kb is prohibited from entering a channel, my question is if it could be expelled. through KILL a user and add a counter to said expulsion and notify through topic.



Quote:
Restricted access (CrazyCat) --->
Makes access to a specified channel restricted. Only people who are in the bot's userlist can join the channel.

https://tclarchive.org/download.php?id=464



- my english is horrible -
Back to top
View user's profile Send private message AIM Address
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1058
Location: France

PostPosted: Tue Oct 18, 2022 5:28 pm    Post subject: Reply with quote

Quite stupid script: the channel exists because eggdrop is in it. And your mirc script doesn't protect the user, so eggdrop will kill itself.

Code:
set kcnt 0
bind join - "#blocked" killhim

proc killhim {nick uhost handle chan} {
   incr ::kcnt
   putserv "KILL $nick :You are the $::kcnt kill"
   putserv "TOPIC $chan :Forbidden channel - $::kcnt kills"
}

_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message 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
Page 1 of 1

 
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