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.

channel set modes

Old posts that have not been replied to for several years.
Locked
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

channel set modes

Post by cerberus_gr »

Hello,

As I remember eggdrop 1.6.15+ supports user defined modes in channel settings, like:

Code: Select all

<My_bot> User defined channel flags:
<My_bot>      -noseendata +quietseens +quietaiseens -nopubseens
So, why I get this error?

Code: Select all

<cerberus_gr> .chanset #channel +nousernotice
<My_bot> Error trying to set +nousernotice for #channel, invalid mode.
Where is my error?

Thx and sorry if this post already exists, but search returned nothing :)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

There is no setting such as "nousernotice" as far as I know. Maybe you can have additional settings if you load modules.

The general ones are:
-autoop -autovoice
-bitch +cycle
+dontkickops +dynamicbans
+dynamicexempts +dynamicinvites
-enforcebans +greet
-inactive -nodesynch
-protectfriends +protectops
-revenge -revengebot
-secret -seen
+shared +statuslog
+userbans +userexempts
+userinvites +protecthalfops
+autohalfop
For channel modes, use:

.chanset <channel> chanmode [+/-<modelock>]

And the ones you show, are loaded by the seen module, as we can clearly see here all have "seen" somewhere in them.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

Post by cerberus_gr »

So, you mean that I can't set my own channel modes, as I thought?

I have seen this post where it says "Just type in partyline: .chanset #channel +imdb"

I think that I found the solution too, right now -> setudef flag imdb

:)
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

cerberus_gr wrote:So, you mean that I can't set my own channel modes, as I thought?

I have seen this post where it says "Just type in partyline: .chanset #channel +imdb"

I think that I found the solution too, right now -> setudef flag imdb

:)
Yes imdb requires you to turn it on/off per channel but that is defined in the tcl script. you cant just make things up and expect it too work :)
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

cerberus_gr wrote:So, you mean that I can't set my own channel modes, as I thought?

I have seen this post where it says "Just type in partyline: .chanset #channel +imdb"

I think that I found the solution too, right now -> setudef flag imdb

:)
Where ever you have seen that post, it is false and not the correct way to set channel modes for channels, using .chanset.

I don't think you read my post very clearly, all information I provided in it earlier. Scroll back and see the very last few lines and stare it and... then figure what have you done wrong.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

Post by cerberus_gr »

That I want to do is to avoid to set channels inside the tcl script. So I want to have an option like +/-nousernotice for each channel.

I tested this, whis worked great:

Code: Select all

[16:37:40] <cerberus_gr> .tcl setudef flag nousernotice
[16:37:40] <My_bot> Tcl: 
[16:37:48] <cerberus_gr> .chanset #chan +nousernotice
[16:37:49] <My_bot> Successfully set modes { +nousernotice  } on #chan.
[16:39:43] <cerberus_gr> .tcl putlog "[channel info #chan]"
[16:39:44] <My_bot> [16:38] +tn-kip 0 0 0 {} {} {} {{ putserv "PRIVMSG Chanserv :unban #chan" }} {} 0:0 0:0 0:0 0:0 0:0 0:0 3:8 120 60 60 -enforcebans -dynamicbans +userbans -autoop -autohalfop -bitch -greet -protectops -protecthalfops -protectfriends +dontkickops -inactive -statuslog -revenge -revengebot -secret -shared +autovoice -cycle -seen -dynamicexempts +userexempts -dynamicinvites +userinvites +nodesynch -noseendata +quietseens +quietaiseens -nopubseens +nousernotice
[16:39:44] <My_bot> Tcl: 


[16:43:33] <My_bot> User defined channel flags:
[16:43:33] <My_bot>      -noseendata +quietseens +quietaiseens -nopubseens
[16:43:33] <My_bot>      +nousernotice
So, the only that I have to do is to check in my tcl code if the channel has + or - this flag!
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

dont you ever getting tired of being wrong awyeah ?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

What's wrong about that gb? I think you need some rest.

For modelocks:
.chanset <channel> chanmode [+/-<modelock>]

For settings:
.chanset <channel> [+/-<setting>]

It's quite simple.

Unless you have a tcl script for your +nousernotice, it would be quite redundant to create a new flag and set it to a channel.

Say we have something like this. This script will only work on channels which have the setting +nousernotice set on them. If the channel has -nousernotice set, then that if { .... } condition below will not satisfy and the script will not run.

Code: Select all

setudef flag nousernotice

bind notc - "*" no:user:notice

proc no:user:notice {nick uhost hand text {chan ""}} {
 global botnick
  if {[channel get $chan nousernotice] && ![isbotnick $chan] && [string equal "#" [string index $chan 0]] && [botisop $chan]} {
   putserv "MODE $chan +b *!*@[lindex [split uhost @] 1]"
   putserv "KICK $chan $nick: No channel noticing is allowed"
   }
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

awyeah, cerberus_gr specificly asked for help with a user defined mode, and you just listed the defaults ones for him. Then he pointed to another post dealing with user defined modes, which you claimed contained false information. So yea, you were wrong.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Yeah he didn't define the flag so obviously it didn't existed thats why I listed the ones he could use. He didn't ask about creating it. I thought it was a setting in some module or something where he might have seen it.

Code: Select all

I have seen this post where it says "Just type in partyline: .chanset #channel +imdb"
This one I thought he mean't in setting chanmode.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked