This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

it's possible?

Help for those learning Tcl or writing their own scripts.
Post Reply
O
ORATEGOD
Voice
Posts: 39
Joined: Mon Jun 08, 2020 5:50 pm

it's possible?

Post by ORATEGOD »

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


Code: Select all

######################
# 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
User avatar
CrazyCat
Revered One
Posts: 1215
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

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

And depending on your ircd, you can use spamfilter to do that.
s
simo
Revered One
Posts: 1069
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

O
ORATEGOD
Voice
Posts: 39
Joined: Mon Jun 08, 2020 5:50 pm

Post by ORATEGOD »

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)
O
ORATEGOD
Voice
Posts: 39
Joined: Mon Jun 08, 2020 5:50 pm

Post by ORATEGOD »

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.


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 -
User avatar
CrazyCat
Revered One
Posts: 1215
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

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: Select all

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"
}
Post Reply