mirror of
https://github.com/wownero/tippero.git
synced 2026-10-17 07:41:35 +02:00
Move IRC logging functions to ircutils
This commit is contained in:
+7
-1
@@ -18,7 +18,7 @@ import time
|
||||
import string
|
||||
import base64
|
||||
import tipbot.config as config
|
||||
from tipbot.log import log_error, log_warn, log_info, log_log, log_IRCSEND, log_IRCRECV
|
||||
from tipbot.log import log, log_error, log_warn, log_info, log_log
|
||||
|
||||
irc_line_delay = 0
|
||||
irc = None
|
||||
@@ -38,6 +38,12 @@ irc_quitting = False
|
||||
userstable=dict()
|
||||
registered_users=set()
|
||||
|
||||
def log_IRCRECV(msg):
|
||||
log("IRCRECV",msg)
|
||||
|
||||
def log_IRCSEND(msg):
|
||||
log("IRCSEND",msg)
|
||||
|
||||
def SendIRC(msg):
|
||||
global last_send_time, current_send_delay
|
||||
|
||||
|
||||
@@ -27,9 +27,3 @@ def log_info(msg):
|
||||
def log_log(msg):
|
||||
log("LOG",msg)
|
||||
|
||||
def log_IRCRECV(msg):
|
||||
log("IRCRECV",msg)
|
||||
|
||||
def log_IRCSEND(msg):
|
||||
log("IRCSEND",msg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user