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.

Monitor a channel without being an Operator

General support and discussion of Eggdrop bots.
Post Reply
s
samalex
Voice
Posts: 1
Joined: Tue Jan 16, 2007 11:23 pm

Monitor a channel without being an Operator

Post by samalex »

Hi everyone,

I want to setup an eggbot to simply monitor a few channels and log the activity for me to review later. No matter how I setup my channel under the Channel Module, I always have tons of the following in my logfile:
[21:16] #mychannel is active but has no ops :(
[21:20] Last message repeated 4 time(s).
[21:20] #mychannel (+ctn) : [m/65 o/0 h/0 v/0 n/65 b/0 e/0 I/0]

Is it possible for eggbot to do this without being an Op? I know the other folks in the channel don't see this, but I don't want the bot sending Op commands of any form to the channel, just idle and recording what happens.

Thanks..

Sam
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Eggdrop.conf wrote:# This creates a logfile named eggdrop.log containing private msgs/ctcps,
# commands, errors, and misc. info from any channel.
logfile mco * "logs/eggdrop.log"

# This creates a logfile named lamest.log containing joins, parts,
# netsplits, kicks, bans, mode changes, and public chat on the
# channel #lamest.
logfile jpk #lamest "logs/lamest.log"
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

@Samalex:
1st, the text you describe will not be sent to the channel, or the irc-server itself in any way. It will only be sent through dcc chat "partyline" sessions (which is a direct client to client connection, no irc server traffic here). If you don't want those "#mychannel (+cnt) : [m/65....." messages, either set the channel -statuslog, or modify your console-setting (see .console) to not include the "o" logging flag.

2nd, your eggie will always stive to become a chanop, and once opped; manage the channel. What you can do, is limit the actions it will take to do so.
In order to get opped, your eggie will check these settings for actions to get opped:
  • need-xxx channel setting (this setting is channel speciffic, xxx = what the bot needs: op, key, etc)
  • "need" binding (matches channel against mask)
Both specify tcl commands to be evaluated whenever your bot needs something. Unset/unbind to make sure your bot does not ask for op.

To make your bot as passive as possible should it ever get opped, make sure you configure your eggdrop something like this (all channel-settings):
-auto[op|voice], -bitch, +dontkickops, -dynamic[bans|invites|exempts], -enforcebans, -greet, -protect[ops|friends|halfops], -revenge, -revengebot, +user[bans|invites|exempts].
Also set flood-[chan|deop|kick|join|ctcp|nick] to 0:0 and stopnethack to 0

If you get alot of "#mychannel is active but has no ops", it would seem your bot thinks the channel is opless. Unfortunately, I can't think of any way of getting rid of these log-entries without modifying the source. Even so, these won't be sent to the irc-server either.
NML_375
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

nml375 wrote:Unfortunately, I can't think of any way of getting rid of these log-entries without modifying the source. Even so, these won't be sent to the irc-server either.
That message will only appear if the channel is +statuslog, but you could also make the bot believe it is +o...

Code: Select all

bind join - * fakeop
proc fakeop {n u h c} {
	if {[string eq $n $::botnick]} {
		*raw:irc:mode $::botname MODE "$c +o $::botnick"
	}
}
(not tested as usual)
Have you ever read "The Manual"?
Post Reply