Updated, had bugs from the registry conversion.

This commit is contained in:
Jeremy Fincher 2004-01-30 05:01:46 +00:00
parent 3b17c81cb8
commit 3de0f0e6f2
2 changed files with 4 additions and 11 deletions

View File

@ -42,8 +42,9 @@ import conf
import ircdb
import ircmsgs
import plugins
import privmsgs
import ircutils
import privmsgs
import registry
import callbacks
def configure(advanced):

View File

@ -58,25 +58,17 @@ class Status(callbacks.Privmsg):
self.recvdMsgs = 0
self.sentBytes = 0
self.recvdBytes = 0
self.uptimes = UptimeDB()
self.uptimes.add()
self.uptimes.update()
def inFilter(self, irc, msg):
self.uptimes.update()
def __call__(self, irc, msg):
self.recvdMsgs += 1
self.recvdBytes += len(msg)
return msg
callbacks.Privmsg.__call__(self, irc, msg)
def outFilter(self, irc, msg):
self.sentMsgs += 1
self.sentBytes += len(msg)
return msg
def die(self):
self.uptimes.update()
self.uptimes.die()
def net(self, irc, msg, args):
"""takes no arguments