Hack hack hack hack
authorStefano Rivera <stefano@rivera.za.net>
Sat, 17 May 2014 18:09:09 +0000 (20:09 +0200)
committerStefano Rivera <stefano@rivera.za.net>
Sat, 17 May 2014 18:09:09 +0000 (20:09 +0200)
naja/actions.py

index 2407d829b59155b4077d7f56e5d4e171c9bfb646..5aa465a4c3122889e801871211432323a0cbaf71 100644 (file)
@@ -130,6 +130,8 @@ class GenericBits(LocationAction):
         bits.clear_bits(self.clear_bits)
 
     def get_text(self, location=None):
+        if 'message' in self.data:
+            return super(GenericBits, self).get_text()
         parts = []
         for template, bits in [
                 ('Set %s.', self.set_bits), ('Clear %s.', self.clear_bits),