diff options
author | makefu <github@syntax-fehler.de> | 2011-07-24 04:56:05 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2011-07-24 04:56:05 +0200 |
commit | 2862f1ad4ef0439721779a1a93e29bc5dc1c84de (patch) | |
tree | 1a5403078e32ea6f0dc031dfb650f5a6d5914307 /cholerab/cholerab-live/cholerab.py | |
parent | f1f12489514f47f9154f8e4b6232399e747cfcd8 (diff) |
added robustness, removed utf8 support
to be able to send special characters over the line the characters are translated into their number value and written as string.
this essentially breaks utf-8 support for the clients, needs to be fixed some time later
added ignore for own messages, message colorization
Diffstat (limited to 'cholerab/cholerab-live/cholerab.py')
-rwxr-xr-x | cholerab/cholerab-live/cholerab.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cholerab/cholerab-live/cholerab.py b/cholerab/cholerab-live/cholerab.py index b6b3f84f..eb9e66df 100755 --- a/cholerab/cholerab-live/cholerab.py +++ b/cholerab/cholerab-live/cholerab.py @@ -14,9 +14,9 @@ class Cholerab: log.info("Sending %s at (%d,%d) to connected peers" %(char,x,y)) self.transport.send_char(x,y,char) - def write_char(self,x,y,char,user): - log.info("Writing %s at (%d,%d) from %d to view" %(char,x,y,user)) - self.view.write_char(x,y,char,user) + def write_char(self,x,y,char): + log.info("Writing %s at (%d,%d) to view" %(char,x,y)) + self.view.write_char(x,y,char,user=2) def stop(self): self.view.stop() self.transport.stop() |