Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 5610b115 authored by Randy Sommerfeld's avatar Randy Sommerfeld

Make better use of format()

parent f9e03e48
......@@ -1116,7 +1116,7 @@ function IRCClient_do_whois(wi) {
));
}
this.numeric(317, format(
"%s %s %s :seconds idle, signon time",
"%s %lu %lu :seconds idle, signon time",
wi.nick,
Epoch() - wi.talkidle,
wi.connecttime
......
......@@ -583,7 +583,7 @@ function Server_Work(cmdline) {
}
}
this.bcast_to_servers_raw(
format("NICK %s %s %s %s %s %s %s 0 %s :%s",
format("NICK %s %d %lu %s %s %s %s 0 %lu :%s",
j.nick,
j.hops + 1,
j.created,
......@@ -681,7 +681,7 @@ function Server_Work(cmdline) {
p[0]
));
this.bcast_to_servers_raw(format(
":%s NICK %s :%s",
":%s NICK %s :%lu",
origin.nick,
p[0],
origin.created
......@@ -983,7 +983,7 @@ function Server_Work(cmdline) {
tmp.created = parseInt(p[0]);
this.bcast_to_servers_raw(
format(":%s SJOIN %s %s %s :%s",
format(":%s SJOIN %lu %s %s :%s",
origin.nick,
tmp.created,
tmp.nam,
......@@ -1008,7 +1008,7 @@ function Server_Work(cmdline) {
tmp.nam
), false /*bcast*/);
this.bcast_to_servers_raw(
format(":%s SJOIN %s %s",
format(":%s SJOIN %lu %s",
origin.nick,
tmp.created,
tmp.nam
......@@ -1440,7 +1440,7 @@ function IRCClient_reintroduce_nick(nick) {
if (chan.modelist[CHANMODE_VOICE][nick.id])
cmodes += "+";
this.rawout(
format("SJOIN %s %s %s :%s%s",
format("SJOIN %lu %s %s :%s%s",
chan.created,
chan.nam,
chan.chanmode(true),
......@@ -1464,7 +1464,7 @@ function IRCClient_reintroduce_nick(nick) {
function IRCClient_server_chan_info(sni_chan) {
var i;
this.rawout(format("SJOIN %s %s %s :%s",
this.rawout(format("SJOIN %lu %s %s :%s",
sni_chan.created,
sni_chan.nam,
sni_chan.chanmode(true),
......
......@@ -401,7 +401,7 @@ function Unregistered_Welcome() {
));
if (server.client_update != undefined)
server.client_update(this.socket, this.nick, this.hostname);
server_bcast_to_servers(format("NICK %s 1 %s + %s %s %s 0 %s :%s",
server_bcast_to_servers(format("NICK %s 1 %lu + %s %s %s 0 %lu :%s",
this.nick,
new_user.created,
this.uprefix,
......
......@@ -320,7 +320,7 @@ function User_Work(cmdline) {
tmp.nam,
tmp.chanmode(this.channels[p[0].toUpperCase()] ? true : false)
));
this.numeric(329, format("%s %s",
this.numeric(329, format("%s %lu",
tmp.nam,
tmp.created
));
......@@ -1000,7 +1000,7 @@ function User_Work(cmdline) {
delete Users[this.nick.toUpperCase()];
}
this.bcast_to_servers(format(
"NICK %s :%s",
"NICK %s :%lu",
p[0],
this.created
));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment