Skip to content

Commit

Permalink
Issue #8
Browse files Browse the repository at this point in the history
/me
  • Loading branch information
sl4shme committed Oct 22, 2013
1 parent 1e9813b commit 7af0832
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sschat.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ def command(self, mess):
elif cmd == "bug" and len(args) >= 1:
mess=' '.join(args)
self.bug(mess)
elif cmd == "me" and len(args) >= 1:
mess=' '.join(args)
chatMessage = self.minion.nickname+" "+mess
if self.minion.encrypt == False:
self.minion.sendMessage("/msg "+chatMessage)
else :
chatMessage = "<e> "+chatMessage
encMessage = self.minion.crypto.encrypt(chatMessage)
self.minion.sendMessage("/enc "+encMessage)
self.screen.printMessage(chatMessage)
elif cmd == "pm" and len(args) >= 2:
pid=args[0]
message=' '.join(args[1:])
Expand Down

0 comments on commit 7af0832

Please sign in to comment.