File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ void processJoinXML(const QDomElement& hostElement, HostEntry& entry)
68
68
tmp = join.firstChildElement (" password" );
69
69
if (!tmp.isNull ())
70
70
entry.chanpasswd = tmp.text ();
71
+ tmp = join.firstChildElement (" join-last-channel" );
72
+ if (!tmp.isNull ())
73
+ entry.lastChan = tmp.text () == " true" ;
71
74
}
72
75
}
73
76
@@ -279,13 +282,16 @@ QByteArray generateTTFile(const HostEntry& entry)
279
282
280
283
QDomElement channel = doc.createElement (" channel" );
281
284
channel.appendChild (doc.createTextNode (entry.channel ));
285
+ join.appendChild (channel);
282
286
283
287
QDomElement password = doc.createElement (" password" );
284
288
password.appendChild (doc.createTextNode (entry.chanpasswd ));
285
-
286
- join.appendChild (channel);
287
289
join.appendChild (password);
288
290
291
+ QDomElement joinlast = doc.createElement (" join-last-channel" );
292
+ joinlast.appendChild (doc.createTextNode (entry.lastChan ? " true" : " false" ));
293
+ join.appendChild (joinlast);
294
+
289
295
host.appendChild (join);
290
296
}
291
297
You can’t perform that action at this time.
0 commit comments