Mercurial > traipse_dev
diff orpg/tools/aliaslib.py @ 83:f38df4bf9715 alpha
Traipse Alpha 'OpenRPG' {090909-00}
Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc''s main goal is to offer more advanced features and enhance the productivity of the user.
Update Summary:
Fixes problems with Text nodes. Fixes log problem in Fog. Fixes Mini Lib loading problem. Fixes problem with whispers in Alias Lib.
Creates new Alpha Branch.
author | sirebral |
---|---|
date | Wed, 09 Sep 2009 17:11:39 -0500 |
parents | 7b752c9d0c28 |
children | dcae32e219f1 b633f4c64aae |
line wrap: on
line diff
--- a/orpg/tools/aliaslib.py Thu Aug 27 00:51:22 2009 -0500 +++ b/orpg/tools/aliaslib.py Wed Sep 09 17:11:39 2009 -0500 @@ -325,15 +325,16 @@ defaultcolor = settings.get_setting("mytextcolor") settings.set_setting("mytextcolor", self.alias[1]) self.chat.set_colors() - opts = [] + opts = []; idlist = [] myid = self.session.get_id() for p in players: if p[2] != myid: opts.append("(" + p[2] + ") " + self.chat.html_strip(p[0])) + if p[2] != myid: idlist.append(p[2]) dlg = orpgMultiCheckBoxDlg(self, opts, "Select Players:", "Whisper To", []) sendto = [] if dlg.ShowModal() == wx.ID_OK: selections = dlg.get_selections() - for s in selections: sendto.append(players[s][2]) + for s in selections: sendto.append(idlist[s]) line = self.textWnd.GetValue().replace("\n", "<br />") if self.checkFilterText.IsChecked() and self.filter != self.chat.defaultFilterName: for rule in self.filterRegEx: line = re.sub(rule[0], rule[1], line)