Bug 235712 - Make CTCP code not send "null" when no params passed.

r=samuel@sieb.net
This commit is contained in:
silver%warwickcompsoc.co.uk 2004-03-02 19:43:12 +00:00
parent e111ac800c
commit 61aa588704

View File

@ -600,11 +600,8 @@ function serv_actto (target, msg)
CIRCServer.prototype.ctcpTo =
function serv_ctcpto (target, code, msg, method)
{
if (typeof msg == "undefined")
msg = "";
if (typeof method == "undefined")
method = "PRIVMSG";
msg = msg || "";
method = method || "PRIVMSG";
code = code.toUpperCase();
if (code == "PING" && !msg)
@ -2077,12 +2074,8 @@ function chan_notice (msg)
CIRCChannel.prototype.ctcp =
function chan_ctcpto (code, msg, type)
{
if (typeof msg == "undefined")
msg = "";
if (typeof type == "undefined")
type = "PRIVMSG";
msg = msg || "";
type = type || "PRIVMSG";
this.parent.messageTo(type, this.encodedName, fromUnicode(msg, this), code);
}
@ -2345,12 +2338,8 @@ function usr_act (msg)
CIRCUser.prototype.ctcp =
function usr_ctcp (code, msg, type)
{
if (typeof msg == "undefined")
msg = "";
if (typeof type == "undefined")
type = "PRIVMSG";
msg = msg || "";
type = type || "PRIVMSG";
this.parent.messageTo(type, this.name, fromUnicode(msg, this), code);
}