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.

Invalid modes that DO exist

Old posts that have not been replied to for several years.
Locked
D
DJ747
Voice
Posts: 10
Joined: Tue Nov 16, 2004 11:22 pm

Invalid modes that DO exist

Post by DJ747 »

I'm trying to set my bot to force the mods +ntCT The bot is on an Unreal3.2.2 server and all those modes exist but it told me: "Error trying to set +ntCT for #DJ747, invalid mode." Yes those are all REAL modes, i tried them out myself, anyone have any ideas on how to make my bot think they are real?
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Make sure the 'net-type' setting in your config file is correct.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

net-type is irrelevant to his problem, it's merely a switch setting other ircd-specific vars, but not valid chanmodes

valid chanmodes should be obtained from server numeric 005 (ISUPPORT) reply, as does mIRC; afaik eggdrop doesn't do this
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

enforce +nt and try this:

Code: Select all

bind mode - "% -C" enforce
bind mode - "% -T" enforce
bind mode - "% +o" enforce
proc enforce {n u h c m v} {
  if {$m=="+o" && [string compare -nocase $v $::botnick]} return
  putserv "mode $c +CT"
}
D
DJ747
Voice
Posts: 10
Joined: Tue Nov 16, 2004 11:22 pm

Post by DJ747 »

CHANMODES=be,kfL,l,psmntirRcOAQKVGCuzNSMT <-- there is C and T in the chanmodes, maybe my eggdrop can't read the line properly? Or is this thing internal?
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Hmm, the only way i get the eggdrop to report invalid mode is if a use a incorrect syntax. Make sure you set channel modes with
.chanset #channel chanmode +ntCT
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

DJ747 wrote:CHANMODES=be,kfL,l,psmntirRcOAQKVGCuzNSMT <-- there is C and T in the chanmodes, maybe my eggdrop can't read the line properly? Or is this thing internal?
this is part of a string that your irc server sends to you (or to your bot, or to anyone for that matter) when you connect to it - so called ISUPPORT reply - server numeric 005 (it can also be obtained when you /version the server)

your mIRC client reads and interpret it; your eggdrop doesn't - thus the unknown modes your bot is complaining about

the only way to make the eggdrop aware of it is to write a script which binds raw to numeric 005 and interprets it - but you still can't teach the bot about those modes that are unknown to it

so mIRC and some other clients (irssi?) have an advantage over eggdrop on this particular feature
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

/me still think he just messed up the .chanset syntax
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

gb wrote:/me still think he just messed up the .chanset syntax
probably so, but even if you issue the correct command, eggdrop - unlike mIRC and other clients - still won't recognize and enforce modes that it doesn't know about
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

That might be, but eggdrop wont return a error, unless you have a raw bind on it.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Are those two particular flags actually available for normal users? Some modes can only be used by IRCops.

DJ747 maybe paste (from your conf) the chanmode setting you have. It could just be a syntax error. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Try doing this in DCC lets see if it works.

(Make sure your dcc:tcl unbind is commented in the .conf file)

Code: Select all

.tcl putserv "MODE #channel +TC"
·­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 »

It's a syntax issue, no point in beating this thead to death.
<gb> .chanset #gb +wrong_syntax
<G> Error trying to set +WRONG_syntax for #gb, invalid mode.

<gb> .chanset #gb chanmode +CORRECT_syntax
<G> Successfully set modes { chanmode { +CORRECT_syntax } } on #gb.
The error msg with the wrong syntax is the same as DJ747 got.

And the eggdrop also don't return anything, legal mode or not, if the syntax is correct.

EOF
Locked