305 """ |
305 """ |
306 Public method to add a server message. |
306 Public method to add a server message. |
307 |
307 |
308 @param msgType txpe of the message (string) |
308 @param msgType txpe of the message (string) |
309 @param msg message to be added (string) |
309 @param msg message to be added (string) |
310 @keyparam filterMsg flag indicating to filter the message (boolean) |
310 @param filterMsg flag indicating to filter the message (boolean) |
311 """ |
311 """ |
312 if filterMsg: |
312 if filterMsg: |
313 msg = ircFilter(msg) |
313 msg = ircFilter(msg) |
314 s = '<font color="{0}">{1} <b>[</b>{2}<b>]</b> {3}</font>'.format( |
314 s = '<font color="{0}">{1} <b>[</b>{2}<b>]</b> {3}</font>'.format( |
315 Preferences.getIrc("ServerMessageColour"), |
315 Preferences.getIrc("ServerMessageColour"), |