Skip to content
Snippets Groups Projects
Commit 928fa43a authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Improve TS handling in SJOIN

parent fec3c288
No related branches found
No related tags found
No related merge requests found
......@@ -895,6 +895,9 @@ function Server_Work(cmdline) {
if (!p[1] || p[1][0] != "#")
break;
if (!this.hub)
p[0] = Epoch();
tmp = Channels[p[1].toUpperCase()];
if (!tmp) {
Channels[p[1].toUpperCase()] = new Channel(p[1].toUpperCase());
......@@ -907,7 +910,7 @@ function Server_Work(cmdline) {
this.set_chanmode(
tmp, /* Channel object */
p.splice(2,p.length-4).join(" "), /* Channel mode */
(tmp.created == parseInt(p[0])) ? false : true /* TS */
(tmp.created <= parseInt(p[0])) ? false : true /* TS */
);
j = p[p.length-1].split(" "); /* Channel members */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment