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.

CHANSERV TCL Script

Old posts that have not been replied to for several years.
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

CHANSERV TCL Script

Post by stevegarbz »

Does anyone have a remake of ChanServ, except in TCL? I need it for channels without ChanServ on GameSurge and need it to be very secure. Thanks
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

why not simply use a real ChanServ?
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

its an illegal channel ( meaning gamesurge won't register it )
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

then what would you want your "ChanServ" to do? it couldn't register channels, and for ops/user list management you can use plain old eggdrop, no scripts are needed for that
T
TurboChicken
Halfop
Posts: 61
Joined: Wed Sep 29, 2004 3:18 pm

Post by TurboChicken »

i think he would want is some way of maintaining eggdrops user list via PM rather than partyline

so basically something for adding users to op halfop and voice and removing

listing who has op halfop and voice
mode locking
flooding

atleast that's what i would expect
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

I'm looking for something that I can add like !addop, !addban, !mode +m, !kick, a script like that so I don't have to do it through the party line. I want users to have access, etc. So it's just like a chanserv except ran through my eggdrop.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

The Search button (above) really is a handy tool.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

i've tried that. and I haven't found anything.

---

either that or all the topics were so dumb I didn't even read them
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Woops! I pasted the wrong Search link; anyway try this. I got 10 pages of results by simply typing in "chan" (TCL Archive). What was so hard about that?
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

none of them are a full chanserv script either.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

stevegarbz wrote:none of them are a full chanserv script either.
then learn TCL & eggdrop and write one ;)

I doubt someone here will have the time & the will to implement a full-fledged ChanServ emulation suiting your particular needs
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

i'm just wondering if anyone knows of one / has one. not asking for anyone to code one.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Its not that complicated. However the ChanServ, part you would have to make the bot operup and defining different accesses for users, adding lots of flags, hosts could be a rain pain.

The easiest way is to, download a pub cmd tcl from the egghelp tcl archive.
You can have an idea from that; there are plenty availiable which have variations of commands.

There are many simple commands such as !op, !deop, !kick, !ban which are very basic and easy to code in tcl.

You can bind them to dcc for them to work in private, or on a channel as in binding pub, or even in notices, its all upto you.


Example:

Code: Select all

#This code will op a user with flag "+o", when !op is triggered.
#If there are nicks specified, it will op those nicks.
#Triggers on channels only.

#Usage:

!op #ops person triggered
!op <nicks> #ops nicks mentioned
 |
 |_ <nick1 nick2 nick3.........nick6>
  

bind pub o !op op:user

proc op:user {nick uhost hand chan text} {
 if {([lindex $text 0] == "")} {
  putserv "MODE $chan +o $nick"
  }
 if {([lindex $text 0] != "")} {
  putserv "MODE $chan +oooooo [lindex $text 0] [lindext $text 1] [lindex $text 2] [lindex $text 3] [lindext $text 4] [lindex $text 5]"
 }
}
We can make it check lots of things in this way. For example make the bot check if its op before opping the person or those people. [botisop $chan].

Even if the bot is not a channel op and is a services/server admin (ircoper) with +a, +A flag, it could use /samode to op the person or those people.

Similarly, the bot be more user friendly, if we make the bot check for ops, if it is opered up, if the user is already opped and asking for ops ([isop $nick $chan]), or not to opped the nicks mentioned which are already opped.

Suppose if the bot is not opered up or opped in the channel and some one requests this trigger then the bot can check if its not opered up, operup and use the command.

I would recommend you keep your bot a services admin atleast +a mode, since you would want your bot to join everychannel as ChanServ doesn't join every network chan. Then you can use bind msg, private message chanserv for help or even bind notc, private notice for the triggers.

We can make the bot check if that person or any of those people are on the channel ([onchan [lindex $text 0] $chan]), before oping and we can even limit the command say to be triggered on the channels you want etc. We can check that user's channel or global flags, even if that user has a specific uhost etc before triggering.

There are many things we would do with just this simple piece of code.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

awyeah wrote:There are many things we would do with just this simple piece of code.
one of them being fixing its bugs :P
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

demond wrote:
stevegarbz wrote:none of them are a full chanserv script either.
then learn TCL & eggdrop and write one ;)

I doubt someone here will have the time & the will to implement a full-fledged ChanServ emulation suiting your particular needs
And ChanServ can do things normal users thus an eggdrop can't do.
I'm on Quakenet which doesn't use chanserv but from what i do know, chanserv sets modes like +a and normal users can't do that?
Locked