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