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.

2 channels problem

Old posts that have not been replied to for several years.
Locked
Z
Zacharias

2 channels problem

Post by Zacharias »

whats wrong with this

channel add #unitedplayers {
chanmode "+nt-likm"
idle-kick 0
stopnethack-mode 0
revenge-mode 1
ban-time 120
exempt-time 60
invite-time 60
aop-delay 5:30
need-op { putserv "PRIVMSG #unitedplayers :op me cos i'm lame!" }
need-invite { putserv "PRIVMSG #unitedplayers :let me in!" }
need-key { putserv "PRIVMSG #unitedplayers :let me in!" }
need-unban { putserv "PRIVMSG #unitedplayers :let me in!" }
need-limit { putserv "PRIVMSG #unitedplayers :let me in!" }
flood-chan 10:60
flood-deop 3:10
flood-kick 3:10
flood-join 5:60
flood-ctcp 3:60
flood-nick 5:60
}


channel add #up-priv {
chanmode "+nt-likm"
idle-kick 0
stopnethack-mode 0
revenge-mode 1
ban-time 120
exempt-time 60
invite-time 60
aop-delay 5:30
nieed-op { putserv "PRIVMSG #up-priv :op me cos i'm lame!" }
need-invite { putserv "PRIVMSG #up-priv :let me in!" }
need-key { putserv "PRIVMSG #up-priv :let me in!" }
need-unban { putserv "PRIVMSG #up-priv :let me in!" }
need-limit { putserv "PRIVMSG #up-priv :let me in!" }
flood-chan 10:60
flood-deop 3:10
flood-kick 3:10
flood-join 5:60
flood-ctcp 3:60
flood-nick 5:60
}
I get the error:

Code: Select all

Module loaded: channels
[02:37] Tcl error in file 'eggdrop.conf':
[02:37] illegal channel option: nieed-opillegal channel option:  putserv "PRIVMSG #up-priv :op me cos i'm lame!"
    while executing
"channel add #up-priv {
      chanmode "+nt-likm"
      idle-kick 0
      stopnethack-mode 0
      revenge-mode 1
      ban-time 120
      exempt-time ..."
    (file "eggdrop.conf" line 489)
[02:37] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
User avatar
Clipped
Halfop
Posts: 73
Joined: Fri Jan 24, 2003 2:27 am

Post by Clipped »

You got nieed instead of need.

Code: Select all

nieed-op { putserv "PRIVMSG #up-priv :op me cos i'm lame!" } 
to
need-op { putserv "PRIVMSG #up-priv :op me cos i'm lame!" } 


Clipped
M
Moonster
Halfop
Posts: 95
Joined: Wed Nov 13, 2002 5:39 pm
Location: Manchester NH USA
Contact:

Post by Moonster »

A better way of doing this is Not to Add channels to your Conf files. That way you have more flexibility and can use the .+chan command via Telnet/partyline.

Most dont add channels to the conf so you might want to try that way.
Z
Zacharias

Post by Zacharias »

ok
m
mopar
Halfop
Posts: 87
Joined: Sat Oct 26, 2002 3:38 pm
Location: Grebbestad Sweden

Post by mopar »

Moonster wrote:A better way of doing this is Not to Add channels to your Conf files. That way you have more flexibility and can use the .+chan command via Telnet/partyline.

Most dont add channels to the conf so you might want to try that way.
Moonster, I've wondered about that but never tried myself.
If I should do that and one of my shells went down, the bots wount automaticly join that chan again right?
If so, do they join during usual trivia as change of servers during splits and such?

/mopar
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

it will automatically join that channel again..
it does not record the channel/info to the config file but it saves it into the *.chan file.
Elen sila lúmenn' omentielvo
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

There are two types of channel in eggdrop.

Static and dynamic.

As the names sugest, static are added as a perminant feature, and require some extra work to remove. Dynamic means they are totaly flexable by nature.

Static channels are added to the config file, where all the initial settings are made. So long as the channel remains in the config file, it will remain static.

Dynamic channels are added via the ".+chan" command, or other scripted methods (IE netbots .netjoin). They can easily be added and removed using the correct commands.

In both instances, the channels act exactly the same, with one slight differance. As noted against "static" channels, it can only be removed once the corrsponging lines are removed from the config file.

This adds a extra layer of security, preventing anybody from removing the bot from the channel (though the +inactive setting can still be used).

Etiher method can be used, and is of no issue at all.
m
mopar
Halfop
Posts: 87
Joined: Sat Oct 26, 2002 3:38 pm
Location: Grebbestad Sweden

Post by mopar »

great, thanks dudes..

I'll test that then for a while and see how i like it.. saves me alot of bother :)

//mopar
Locked