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

Improve TS handling in SJOIN

parent a3138fec
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -895,6 +895,9 @@ function Server_Work(cmdline) { ...@@ -895,6 +895,9 @@ function Server_Work(cmdline) {
if (!p[1] || p[1][0] != "#") if (!p[1] || p[1][0] != "#")
break; break;
if (!this.hub)
p[0] = Epoch();
tmp = Channels[p[1].toUpperCase()]; tmp = Channels[p[1].toUpperCase()];
if (!tmp) { if (!tmp) {
Channels[p[1].toUpperCase()] = new Channel(p[1].toUpperCase()); Channels[p[1].toUpperCase()] = new Channel(p[1].toUpperCase());
...@@ -907,7 +910,7 @@ function Server_Work(cmdline) { ...@@ -907,7 +910,7 @@ function Server_Work(cmdline) {
this.set_chanmode( this.set_chanmode(
tmp, /* Channel object */ tmp, /* Channel object */
p.splice(2,p.length-4).join(" "), /* Channel mode */ 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 */ j = p[p.length-1].split(" "); /* Channel members */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment