1. Marcin Kasperski
  2. mekk.fics

Commits

Marcin Kasperski  committed 2d5e1e4

Protection against attempts to run

qtell somebody <spaces>

(which fail)

  • Participants
  • Parent commits 9d1f65b
  • Branches default
  • Tags 0.7.4

Comments (0)

Files changed (1)

File src/mekk/fics/fics_client.py

View file
         """
         cbs = []
         while what:
-            cbs.append( self.run_command("qtell %s %s" % (who, "\\n".join(what[:10]))) )
+            body = "\\n".join(what[:10])
+            if body.strip(): # Zabezpieczenie przed pustymi wierszami
+                cbs.append( self.run_command("qtell %s %s" % (who, body)) )
             if len(what) > 10:
                 what = what[10:]
             else: