- chatzilla only -
Bug 139334 - [RFE] SQUERY command support patch=jbontje@suespammers.org,r=me git-svn-id: svn://10.0.0.236/trunk@122150 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3ef731e4d2
commit
d6482d8b53
@ -77,6 +77,7 @@ function addCommands(commandObject)
|
||||
add ("quit", "onInputExit");
|
||||
add ("quote", "onInputQuote");
|
||||
add ("server", "onInputServer");
|
||||
add ("squery", "onInputSquery");
|
||||
add ("stalk", "onInputStalk");
|
||||
add ("status", "onInputStatus");
|
||||
add ("statusbar", "onInputStatusbar");
|
||||
|
||||
@ -1133,6 +1133,35 @@ function cli_iscommand (e)
|
||||
}
|
||||
}
|
||||
|
||||
client.onInputSquery =
|
||||
function cli_isquery (e)
|
||||
{
|
||||
var o = getObjectDetails(client.currentObject);
|
||||
|
||||
if ("server" in o)
|
||||
{
|
||||
var ary = e.inputData.match (/(\S+)? ?(.*)/);
|
||||
if (ary == null)
|
||||
return false;
|
||||
|
||||
if (ary.length == 1)
|
||||
{
|
||||
o.server.sendData ("SQUERY " + ary[1] + "\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
o.server.sendData ("SQUERY " + ary[1] + " :" + ary[2] + "\n");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
client.currentObject.display (getMsg("onInputSimpleCommandMsg",
|
||||
e.command),"WARNING");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
client.onInputStatus =
|
||||
function cli_istatus (e)
|
||||
{
|
||||
|
||||
@ -36,7 +36,7 @@ const MSG_UNKNOWN = getMsg ("unknown");
|
||||
|
||||
client.defaultNick = getMsg( "defaultNick" );
|
||||
|
||||
client.version = "0.8.7";
|
||||
client.version = "0.8.8";
|
||||
|
||||
client.TYPE = "IRCClient";
|
||||
client.COMMAND_CHAR = "/";
|
||||
@ -2194,7 +2194,7 @@ function __display(message, msgtype, sourceObj, destObj)
|
||||
if (fromUser && sourceObj == me) fromAttr = me.nick + " ME!";
|
||||
else if (fromUser) fromAttr = sourceObj.nick;
|
||||
else if (typeof sourceObj == "object") fromAttr = sourceObj.name;
|
||||
|
||||
|
||||
var toType = (destObj) ? destObj.TYPE : "unk";
|
||||
var toAttr;
|
||||
|
||||
@ -2247,8 +2247,11 @@ function __display(message, msgtype, sourceObj, destObj)
|
||||
if (sourceObj != me)
|
||||
{
|
||||
nick = sourceObj.properNick;
|
||||
if ("getURL" in sourceObj)
|
||||
if (!nick)
|
||||
nick = sourceObj.name + "@" + sourceObj.host;
|
||||
else if ("getURL" in sourceObj)
|
||||
nickURL = sourceObj.getURL();
|
||||
|
||||
if (toType == "IRCUser") /* msg from user to me */
|
||||
{
|
||||
getAttention = true;
|
||||
|
||||
@ -153,6 +153,9 @@ quoteHelp=Sends a raw command to the IRC server, not a good idea if you don't kn
|
||||
serverUsage=<server-hostname> [<port>] [<password>]
|
||||
serverHelp=Connects to server <server-hostname> on <port>, or 6667 if <port> is not specified. Provides the password <password> if specified. If you are already connected, the view for <server-hostname> is made current. If that view has been deleted, it is recreated.
|
||||
|
||||
squeryUsage=<service> [<commands>]
|
||||
squeryHelp=Sends the commands <commands> to the service <service>.
|
||||
|
||||
stalkUsage=<text>
|
||||
stalkHelp=Add text to list of words for which you would like to see alerts. Whenever a person with a nickname matching <text> speaks, or someone says a phrase containing <text>, your ChatZilla window will become active (on some operating systems) and its taskbar icon will flash (on some operating systems.)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user