Move IRC logging functions to ircutils

master
moneromooo 9 years ago
parent 9755e7a825
commit 13f68a1760

@ -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)

Loading…
Cancel
Save