diff options
author | Matt Arnold | 2022-02-12 21:27:06 -0500 |
---|---|---|
committer | Matt Arnold | 2022-02-12 21:27:06 -0500 |
commit | 6938bd4862d8a934044b27277eab1773c0805819 (patch) | |
tree | 0470abdda1396077c5d7e51ccc432304d29be0fe | |
parent | 7d0300a7a428dd42d7751e0e636a42c55f2e116e (diff) |
Minor code cleanup remove annoying comments
-rw-r--r-- | IRC.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/IRC.py b/IRC.py index 430bbf0..018756b 100644 --- a/IRC.py +++ b/IRC.py @@ -1,4 +1,5 @@ - +# Part of rabbitears See LICENSE for permissions +# Copyright (C) 2022 Matt Arnold import socket import sys import time @@ -30,12 +31,10 @@ class IRCBot: irc = None def __init__(self, sock): - # Define the socket self.irc = sock - def send_privmsg(self, channel, msg): - # Transfer data - self.irc.send(bytes("PRIVMSG " + channel + " :" + msg + LINEEND, "UTF-8")) + def send_privmsg(self, dst, msg): + self.irc.send(bytes("PRIVMSG " + dst + " :" + msg + LINEEND, "UTF-8")) def send_quit(self, quitmsg): msg = f'QUIT :{quitmsg}' + LINEEND @@ -46,7 +45,6 @@ class IRCBot: pass def connect(self, server, port, channel, botnick, botpass, botnickpass): - # Connect to the server print("Connecting to: " + server) self.irc.connect((server, port)) |