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

Use a better method for server mode synchronization

parent f9b05300
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -1383,7 +1383,7 @@ function IRCClient_synchronize() {
this.nick
));
this.rawout("BURST"); // warn of impending synchronization
this.rawout("BURST");
for (i in Servers) {
if (Servers[i].id != this.id)
this.server_info(Servers[i]);
......@@ -1412,7 +1412,7 @@ function IRCClient_synchronize() {
));
}
}
this.rawout("BURST 0"); /* burst completed. */
this.rawout("BURST 0");
gnotice(format(
"%s has processed topic burst (synched to network data).",
......@@ -1478,12 +1478,8 @@ function IRCClient_server_chan_info(sni_chan) {
}
}
var modecounter=0;
var modestr="+";
var modeargs="";
for (i in MODE) {
if (MODE[i].state && (sni_chan.mode & i))
modestr += MODE[i].modechar;
}
var modestr = sni_chan.chanmode(true /* show args */);
if (modestr != "+") {
this.ircout(format("MODE %s %s",
sni_chan.nam,
......
......@@ -298,10 +298,6 @@ function User_Work(cmdline) {
tmp.nam,
tmp.chanmode(this.channels[p[0].toUpperCase()] ? true : false)
));
this.numeric(329, format("%s %lu",
tmp.nam,
tmp.created
));
break;
} else { /* Requesting a usermode */
if (p[0].toUpperCase() == this.nick.toUpperCase())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment