egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Monitor a channel without being an Operator

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
samalex
Voice


Joined: 16 Jan 2007
Posts: 1

PostPosted: Tue Jan 16, 2007 11:29 pm    Post subject: Monitor a channel without being an Operator Reply with quote

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 Sad
[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
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Jan 17, 2007 2:12 pm    Post subject: Reply with quote

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"

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Jan 17, 2007 4:19 pm    Post subject: Reply with quote

@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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Wed Jan 17, 2007 6:09 pm    Post subject: Reply with quote

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:
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"?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber