projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7746ca1
)
'prefix' added to styleText member object
author
Darren
<darren@darrenwhitlen.com>
Thu, 3 Jul 2014 22:13:57 +0000
(23:13 +0100)
committer
Darren
<darren@darrenwhitlen.com>
Thu, 3 Jul 2014 22:13:57 +0000
(23:13 +0100)
client/src/helpers/utils.js
patch
|
blob
|
blame
|
history
diff --git
a/client/src/helpers/utils.js
b/client/src/helpers/utils.js
index af416a2b5ac420ace3fc52bb1a696c54b453a498..114ca612b2257ab31900552773eb6daec96a5db4 100644
(file)
--- a/
client/src/helpers/utils.js
+++ b/
client/src/helpers/utils.js
@@
-528,9
+528,10
@@
function styleText(string_id, params) {
// Expand a member mask into its individual parts (nick, ident, hostname)
if (params.member) {
- params.nick = params.member.nick;
- params.ident = params.member.ident;
- params.host = params.member.hostname;
+ params.nick = params.member.nick || '';
+ params.ident = params.member.ident || '';
+ params.host = params.member.hostname || '';
+ params.prefix = params.member.prefix || '';
}
// Do the magic. Use the %shorthand syntax to produce output.