C# Class wmib.Extensions.LogsModule

Inheritance: Module
Mostrar archivo Open project: benapetr/wikimedia-bot

Public Properties

Property Type Description
TextPath string

Public Methods

Method Description
ChanLog ( string message, Channel channel, string user, string host, bool noac = true ) : void

Log file

Construct ( ) : bool

Start work

Hook_ACTN ( Channel channel, libirc invoker, string message ) : void
Hook_ChannelDrop ( Channel chan ) : void
Hook_ChannelQuit ( Channel channel, libirc user, string mesg ) : void
Hook_GetWriterSize ( ) : uint
Hook_Join ( Channel channel, libirc user ) : void
Hook_Kick ( wmib channel, libirc source, string user ) : void
Hook_Nick ( Channel channel, libirc Target, string OldNick, string NewNick ) : void
Hook_OnRegister ( ) : bool
Hook_OnSelf ( Channel channel, libirc self, string message, bool is_act = false ) : void
Hook_OnUnload ( ) : bool
Hook_PRIV ( Channel channel, libirc invoker, string message ) : void
Hook_Part ( Channel channel, libirc user ) : void
Load ( ) : void
Writer ( ) : void

Private Methods

Method Description
Finish ( ) : void
TDToString ( int number ) : string

Convert the number to format we want to have in log

UpdateConfig ( Channel channel ) : void
WriteData ( ) : int
WriteLog ( string message, Channel channel, System.DateTime _datetime ) : bool

Method Details

ChanLog() public method

Log file
public ChanLog ( string message, Channel channel, string user, string host, bool noac = true ) : void
message string Message
channel Channel Channel
user string User
host string Host
noac bool Action (if true it's logged as message, if false it's action)
return void

Construct() public method

Start work
public Construct ( ) : bool
return bool

Hook_ACTN() public method

public Hook_ACTN ( Channel channel, libirc invoker, string message ) : void
channel Channel
invoker libirc
message string
return void

Hook_ChannelDrop() public method

public Hook_ChannelDrop ( Channel chan ) : void
chan Channel
return void

Hook_ChannelQuit() public method

public Hook_ChannelQuit ( Channel channel, libirc user, string mesg ) : void
channel Channel
user libirc
mesg string
return void

Hook_GetWriterSize() public method

public Hook_GetWriterSize ( ) : uint
return uint

Hook_Join() public method

public Hook_Join ( Channel channel, libirc user ) : void
channel Channel
user libirc
return void

Hook_Kick() public method

public Hook_Kick ( wmib channel, libirc source, string user ) : void
channel wmib
source libirc
user string
return void

Hook_Nick() public method

public Hook_Nick ( Channel channel, libirc Target, string OldNick, string NewNick ) : void
channel Channel
Target libirc
OldNick string
NewNick string
return void

Hook_OnRegister() public method

public Hook_OnRegister ( ) : bool
return bool

Hook_OnSelf() public method

public Hook_OnSelf ( Channel channel, libirc self, string message, bool is_act = false ) : void
channel Channel
self libirc
message string
is_act bool
return void

Hook_OnUnload() public method

public Hook_OnUnload ( ) : bool
return bool

Hook_PRIV() public method

public Hook_PRIV ( Channel channel, libirc invoker, string message ) : void
channel Channel
invoker libirc
message string
return void

Hook_Part() public method

public Hook_Part ( Channel channel, libirc user ) : void
channel Channel
user libirc
return void

Load() public method

public Load ( ) : void
return void

Writer() public method

public Writer ( ) : void
return void

Property Details

TextPath public_oe property

public string TextPath
return string