?
This commit is contained in:
parent
41a3f0da15
commit
685fa264da
3 changed files with 6 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -6,7 +6,7 @@ LOCALEDIR=$(DATADIR)/locale
|
||||||
MANDIR=$(DATADIR)/man
|
MANDIR=$(DATADIR)/man
|
||||||
INSTALL=install
|
INSTALL=install
|
||||||
|
|
||||||
all: Makefile
|
all: src/xmpp
|
||||||
cd src/xmpppy-0.5.0rc1 && pwd && python setup.py build && cp -r xmpp ..
|
cd src/xmpppy-0.5.0rc1 && pwd && python setup.py build && cp -r xmpp ..
|
||||||
|
|
||||||
clean: Makefile
|
clean: Makefile
|
||||||
|
|
3
README
3
README
|
@ -70,8 +70,9 @@ the Creative Commons BY license (http://creativecommons.org/licenses/by/2.0/)
|
||||||
= People =
|
= People =
|
||||||
Erwan Briand - Handler and MultiUserChat classes
|
Erwan Briand - Handler and MultiUserChat classes
|
||||||
Gaëtan Ribémont (http://www.bonbref.com) - Logo design
|
Gaëtan Ribémont (http://www.bonbref.com) - Logo design
|
||||||
|
Ovart - Testing
|
||||||
= Project =
|
= Project =
|
||||||
Gajim - send_vcard method
|
Gajim - send_vcard method and common.py
|
||||||
|
|
||||||
======================
|
======================
|
||||||
The code
|
The code
|
||||||
|
|
|
@ -345,7 +345,7 @@ class Gui(object):
|
||||||
|
|
||||||
def room_message(self, stanza):
|
def room_message(self, stanza):
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
self.information(str(stanza))
|
self.information(str(stanza).encode('utf-8'))
|
||||||
if stanza.getType() != 'groupchat':
|
if stanza.getType() != 'groupchat':
|
||||||
return # ignore all messages not comming from a MUC
|
return # ignore all messages not comming from a MUC
|
||||||
room_from = stanza.getFrom().getStripped()
|
room_from = stanza.getFrom().getStripped()
|
||||||
|
@ -375,7 +375,7 @@ class Gui(object):
|
||||||
else:
|
else:
|
||||||
color = room.add_message(nick_from, body)
|
color = room.add_message(nick_from, body)
|
||||||
self.window.text_win.add_line(room, (datetime.now(), nick_from.encode('utf-8'), body.encode('utf-8'), color))
|
self.window.text_win.add_line(room, (datetime.now(), nick_from.encode('utf-8'), body.encode('utf-8'), color))
|
||||||
if room == self.current_room():
|
if room.name == self.current_room().name:
|
||||||
self.window.text_win.refresh(room.name)
|
self.window.text_win.refresh(room.name)
|
||||||
self.window.input.refresh()
|
self.window.input.refresh()
|
||||||
else:
|
else:
|
||||||
|
@ -401,6 +401,7 @@ class Gui(object):
|
||||||
self.window.text_win.refresh(room.name)
|
self.window.text_win.refresh(room.name)
|
||||||
self.window.user_win.refresh(room.users)
|
self.window.user_win.refresh(room.users)
|
||||||
self.window.text_win.refresh()
|
self.window.text_win.refresh()
|
||||||
|
self.window.input.refresh()
|
||||||
curses.doupdate()
|
curses.doupdate()
|
||||||
|
|
||||||
def execute(self):
|
def execute(self):
|
||||||
|
|
Loading…
Reference in a new issue