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.

Bot is op'ed, doesn't think it is?

Old posts that have not been replied to for several years.
Locked
T
Techneaux

Bot is op'ed, doesn't think it is?

Post by Techneaux »

I don't understand what's happening. :-/

A little while ago, I was using the simple.conf and my bot was working fine, I could .voice to voice people and all.

I decided to un-comment-out the default #channel set commands in simple.conf, so I did that, deleted mybot.chan file, and started the bot. But now whenever I tried to do a .voice, it says "You are not a channel op or halfop on #channel." I commented out the lines, deleted mybot.chan again, and started the bot..but same deal. :-/

It's definitely op'ed (i've tried half op and just a regular op) but same result for both. Any ideas? TIA :)
N
Nexus6
Op
Posts: 114
Joined: Mon Sep 02, 2002 4:41 am
Location: Tuchola, Poland

Post by Nexus6 »

"You are not a channel op or halfop on #channel."
it doesn't mean itself, check your flags, you removed *.chan files and your local flags of these chans got dropped and I assume that's the cause.
T
Techneaux

Post by Techneaux »

Gotcha, thanks.
T
Techneaux

Post by Techneaux »

Semi-related problem. The bot is half-opped now, but it won't voice anyone. It can still do things like kick, but not voice. If i set it +o, voicing works, and other people who are +h can voice others. Any ideas? TIA :)

Btw, when I mean it won't voice anyone, the following happens:

[07:48] <JaySilv> .voice JaySilv
[07:48] <Jay-Bot> [07:52] #JaySilv# (#yabb) voice JaySilv
[07:48] <Jay-Bot> Gave voice to JaySilv on #yabb

but the voice doesn't actually happen.
N
Nexus6
Op
Posts: 114
Joined: Mon Sep 02, 2002 4:41 am
Location: Tuchola, Poland

Post by Nexus6 »

try .dump mode #channel +v nick
T
Techneaux

Post by Techneaux »

That works, but .voice or +g doesn't. :-/
N
Nexus6
Op
Posts: 114
Joined: Mon Sep 02, 2002 4:41 am
Location: Tuchola, Poland

Post by Nexus6 »

This should help, when you type .v nick #channel bot should voice a user even if it's only halfopp'ed
2nd proc will auto voice people who have +g (auto-voice flag) if bot is halfopped

# script
bind dcc h v dcc:voice
proc dcc:voice {hand idx arg} {
set nick [lindex [split $arg] 0]
set chan [lindex [split $arg] 1]
putcmdlog "#$hand# voice $arg"
if {($nick == "") || ($chan == "")} {
putidx $idx "Usage: .v nick #channel"
} else {
putidx $idx "voicing $nick on $chan"
putserv "MODE $chan +v $nick"
}
}

#this will autovoice user who has +g flag if bot is halfopped.

bind join g|g * voicecheck

proc voicecheck {nick uhost hand chan} {
if {![botishalfop $chan]} {return 0}
putserv "MODE $chan +v $nick"
}
putlog "halfop-voice fix by Nexus6 loaded"
Locked