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.

A weird problem: My bot doesn't op anyone!

Old posts that have not been replied to for several years.
Locked
K
KNude
Voice
Posts: 5
Joined: Sun Dec 05, 2004 5:24 pm
Location: Helsinki, Finland

A weird problem: My bot doesn't op anyone!

Post by KNude »

My bot has a weird problem: It doesn't op anyone!
I'm not a total newbie, so the users who should be opped have +ao flags on the channel that I want them to be opped. I also know that my bot identifies the users very well. Still, no one gets ops, not even me (I have all the possible global flags there are)!

When I type
.op Jack
in the DCC Chat window, everything works fine (unless the nickname of this user is more than 9 characters long.)

The eggdrop version in question is 1.6.17 and the config file version is probably 1.6.13 or something like that, I can't remember exactly.
m
mopar
Halfop
Posts: 87
Joined: Sat Oct 26, 2002 3:38 pm
Location: Grebbestad Sweden

Post by mopar »

Try doing .chaninfo #channelname
probably you have -autoop set
do a .chanset #channelname +autoop and see if that solves your problem

/mopar
It's never to late to give up..
K
KNude
Voice
Posts: 5
Joined: Sun Dec 05, 2004 5:24 pm
Location: Helsinki, Finland

Didn't work.

Post by KNude »

Thanks for the reply.
I indeed had -autoop set, but unfortunately changing it to +autoop didn't work.

Any other suggestions?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Well, you can always make tcls.
They can trigger in dcc (partyline), in channels and in private messages/notices.

For example, type this in DCC:
(Check if dcc:tcl has a comment, '#' infront of its unbind in .conf file)

Code: Select all

.tcl putserv "MODE #channel +o nick"
Replace '#channel' and 'nick' by the actual channel and nick you want to op. Also make sure the bot is opped.

Similarly you can load tcls into the bot, to make it perform what ever you want it todo. For example binding join on a channel, checking users for flag "o" and auto-oping them or voicing them by checking flag "v" etc.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

Maybe the problem is aop-delay. Try; .chanset * aop-delay 0:0
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

bind JOIN - * join:op

proc join:op { nickname hostname handle channel } {
                if {[matchattr $handle |mnov $channel]} {
                    putquick "MODE $channel +o $nickname"
                } elseif {[matchattr $handle |o $channel]} {
                    putquick "MODE $channel +o $nickname"
                } elseif {[matchattr $handle |v $channel]} {
                    putquick "MODE $channel +v $nickname"
                }
}
This is what i took from my Q bot script but i assume it should work fine for you too. It only ops people with flags IN the channel but it would op anyone with an global op flag if you change

Code: Select all

} elseif {[matchattr $handle |o $channel]} {
                    putquick "MODE $channel +o $nickname"
into

Code: Select all

} elseif {[matchattr $handle o|o $channel]} {
                    putquick "MODE $channel +o $nickname"
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

We can compress this further to:

Code: Select all

bind JOIN - * join:op

proc join:op {nickname hostname handle channel} {
 if {[matchattr $handle |mn $channel] || [matchattr $handle o|o $channel]} {
  putquick "MODE $channel +o $nickname"
  }
 elseif {[matchattr $handle |v $channel]} {
  putquick "MODE $channel +v $nickname"
 }
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
K
KNude
Voice
Posts: 5
Joined: Sun Dec 05, 2004 5:24 pm
Location: Helsinki, Finland

It works now!

Post by KNude »

Thanks metroid! I tried your script and it worked.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

awyeah wrote:We can compress this further to:
Why bother though awyeah, Its not like his bot is going to crash cause of some extra lines :p
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Yeah I know, but I like it to be smaller, as it takes less time for the bot to execute it.

When you have different statement conditions, but same outputs of some conditions please do utilize the logic gates such as AND or OR to sum up the conditions.
·­awyeah·

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