~twpol/chatzilla/tests

« back to all changes in this revision

Viewing changes to xul/content/handlers.js

  • Committer: James Ross
  • Date: 2008-12-21 21:49:00 UTC
  • mfrom: (1123.1.24)
  • Revision ID: silver@warwickcompsoc.co.uk-20081221214900-9l6cxp2cbn0f7a78
Merged to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
681
681
function onInputCompleteLine(e)
682
682
{
683
683
    if (!client.inputHistory.length || client.inputHistory[0] != e.line)
684
 
        client.inputHistory.unshift (e.line);
 
684
    {
 
685
        client.inputHistory.unshift(e.line);
 
686
        if (client.inputHistoryLogger)
 
687
            client.inputHistoryLogger.append(e.line);
 
688
    }
685
689
 
686
690
    if (client.inputHistory.length > client.MAX_HISTORY)
687
691
        client.inputHistory.pop();
1725
1729
CIRCNetwork.prototype.on312 = /* whois server */
1726
1730
CIRCNetwork.prototype.on317 = /* whois idle time */
1727
1731
CIRCNetwork.prototype.on318 = /* whois end of whois*/
 
1732
CIRCNetwork.prototype.on330 = /* ircu's 330 numeric ("X is logged in as Y") */
1728
1733
CIRCNetwork.prototype.onUnknownWhois = /* misc whois line */
1729
1734
function my_whoisreply (e)
1730
1735
{
1787
1792
                user.updateHeader();
1788
1793
            break;
1789
1794
 
 
1795
        case 330:
 
1796
            text = getMsg(MSG_FMT_LOGGED_ON, [e.decodeParam(2), e.params[3]]);
 
1797
            break;
 
1798
 
1790
1799
        default:
1791
1800
            text = toUnicode(e.params.splice(2, e.params.length).join(" "),
1792
1801
                             this);
1798
1807
        this.display(text, e.code);
1799
1808
}
1800
1809
 
1801
 
CIRCNetwork.prototype.on330 = /* ircu's 330 numeric ("X is logged in as Y") */
1802
 
function my_330 (e)
1803
 
{
1804
 
    var msg = getMsg(MSG_FMT_LOGGED_ON, [e.decodeParam(2), e.params[3]]);
1805
 
    if (e.user)
1806
 
        e.user.display(msg, "330");
1807
 
    else
1808
 
        this.display(msg, "330");
1809
 
}
1810
 
 
1811
1810
CIRCNetwork.prototype.on341 = /* invite reply */
1812
1811
function my_341 (e)
1813
1812
{