summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatt Arnold <matt@thegnuguru.org>2022-02-12 21:27:06 -0500
committerMatt Arnold <matt@thegnuguru.org>2022-02-12 21:27:06 -0500
commit6938bd4862d8a934044b27277eab1773c0805819 (patch)
tree0470abdda1396077c5d7e51ccc432304d29be0fe
parent7d0300a7a428dd42d7751e0e636a42c55f2e116e (diff)
Minor code cleanup remove annoying comments
-rw-r--r--IRC.py10
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))