109 tag = '<span style="color:{0}">'.format(Preferences.getIrc( |
109 tag = '<span style="color:{0}">'.format(Preferences.getIrc( |
110 "IrcColor{0}".format(int(colors[0])))) |
110 "IrcColor{0}".format(int(colors[0])))) |
111 else: |
111 else: |
112 if colors[0]: |
112 if colors[0]: |
113 # foreground and background |
113 # foreground and background |
114 tag = '<span style="background-color:{0};color={1}">'\ |
114 tag = ( |
|
115 '<span style="background-color:{0};color={1}">' |
115 .format(Preferences.getIrc( |
116 .format(Preferences.getIrc( |
116 "IrcColor{0}".format(int(colors[0]))), |
117 "IrcColor{0}".format(int(colors[0]))), |
117 Preferences.getIrc( |
118 Preferences.getIrc( |
118 "IrcColor{0}".format(int(colors[1])))) |
119 "IrcColor{0}".format(int(colors[1])))) |
|
120 ) |
119 else: |
121 else: |
120 # background only |
122 # background only |
121 tag = '<span style="background-color:{0}">'.format( |
123 tag = '<span style="background-color:{0}">'.format( |
122 Preferences.getIrc( |
124 Preferences.getIrc( |
123 "IrcColor{0}".format(int(colors[1])))) |
125 "IrcColor{0}".format(int(colors[1])))) |