Commits

Jesus Castagnetto committed c76cd71

fixing typos in code comments

  • Participants
  • Parent commits 094ab2f

Comments (0)

Files changed (2)

File chatbot_gtalk_setup.py

 
 def present_controller(conn, presence):
     """
-    Handler for add automatically users with jabber servers (gtalk).
+    Handler for automatically adding users to jabber servers (gtalk).
     """
     if presence:
         try:
 
 def registrochat(message, email):
     """
-    Performs the chat log.
+    Logs the chat.
     """
     filename = chatbotini.LOGDIR + "/gtalk/" + email
     logfile = open(filename, "a")
 
 def loop_start(conn):
     """
-    Starts the loop
+    Starts the loop.
     """
     while step_on(conn):
         SHOW.setShow("ax")
 
 def cache_read_rpta(email):
     """
-    Read Cache
+    Reads the cache
     """
     rpta = 0
     try:
 
 def cache_write_rpta(message, email):
     """
-    whire Cache
+    Writes to the cache
     """
     try:
         cache = open(chatbotini.CACHEDIR + str(
 
 def rpta_gtalk(conn, mess):
     """
-    Response messages to gtalk contacts.
+    Respond to messages from gtalk contacts.
     """
     logtime = chatbotini.now()
     text = mess.getBody()
 
 def record_questions_unanswered(message, answer, email, date, time):
     """
-    Record Questions Unanswered
+    Records Unanswered Questions
     """
     answer = open("unanswered.txt", "r")
     unanswered = answer.readlines()

File chatbot_msn_setup.py

 
     def emailtonick(self, email):
         """
-        Returns a nick accoriding to the given email, or None if noone matches.
+        Returns a nick using the given email, or None if nobody matches.
         """
         if email in MSN.users.keys():
             return MSN.users[email].nick
 
     def quit(self, code=0):
         """
-        Sign out from MSN.
+        Signs out from MSN.
         """
         print "Closing"
         chatbotini.connection_log("Sesion terminada\n\n\n", "msn")