plugin.id = "ctcp-privacity";
plugin.init =
function _init( glob ) {
this.major = 1;
this.minor = 1;
this.version = this.major + "." + this.minor + " (23 Feb 2010)";
this.description = "Customize your ctcp replyes. " +
"By MakOke <gboxlan@gmail.com>";
this.new_CTCPClientinfoRPLY = CIRCServer.prototype.onCTCP_Clientinfo;
this.new_CTCPFingerRPLY = CIRCServer.prototype.onCTCP_Finger;
this.new_CTCPTimeRPLY = CIRCServer.prototype.onCTCP_Time;
this.new_CTCPVersionRPLY = "This info is not available to you.";
this.new_CTCPSourceRPLY = "http://en.wikipedia.org/wiki/Comparison_of_Internet_Relay_Chat_clients";
this.new_CTCPOsRPLY = "This info is not available to you.";
this.new_CTCPHostRPLY = "This info is not available to you.";
this.new_CTCPPingRPLY = CIRCServer.prototype.onCTCP_Ping;
this.native_CTCPClientinfoRPLY = CIRCServer.prototype.onCTCPClientinfo;
this.native_CTCPFingerRPLY = CIRCServer.prototype.onCTCPFinger;
this.native_CTCPTimeRPLY = CIRCServer.prototype.onCTCPTime;
this.native_CTCPVersionRPLY = CIRCServer.prototype.VERSION_RPLY;
this.native_CTCPSourceRPLY = CIRCServer.prototype.SOURCE_RPLY;
this.native_CTCPOsRPLY = CIRCServer.prototype.OS_RPLY;
this.native_CTCPHostRPLY = CIRCServer.prototype.HOST_RPLY;
this.native_CTCPPingRPLY = CIRCServer.prototype.onCTCPPing;
return "OK";
}
plugin.enable =
function _enable() {
CIRCServer.prototype.onCTCPClientinfo = this.new_CTCPClientinfoRPLY;
CIRCServer.prototype.onCTCPFinger = this.new_CTCPFingerRPLY;
CIRCServer.prototype.onCTCPTime = this.new_CTCPTimeRPLY;
CIRCServer.prototype.VERSION_RPLY = this.new_CTCPVersionRPLY;
CIRCServer.prototype.SOURCE_RPLY = this.new_CTCPSourceRPLY;
CIRCServer.prototype.OS_RPLY = this.new_CTCPOsRPLY;
CIRCServer.prototype.HOST_RPLY = this.new_CTCPHostRPLY;
CIRCServer.prototype.onCTCPPing = this.new_CTCPPingRPLY;
return true;
}
plugin.disable =
function _disable() {
CIRCServer.prototype.onCTCPClientinfo = this.native_CTCPClientinfoRPLY;
CIRCServer.prototype.onCTCPFinger = this.native_CTCPFingerRPLY;
CIRCServer.prototype.onCTCPTime = this.native_CTCPTimeRPLY;
CIRCServer.prototype.VERSION_RPLY = this.native_CTCPVersionRPLY;
CIRCServer.prototype.SOURCE_RPLY = this.native_CTCPSourceRPLY;
CIRCServer.prototype.OS_RPLY = this.native_CTCPOsRPLY;
CIRCServer.prototype.HOST_RPLY = this.native_CTCPHostRPLY;
CIRCServer.prototype.onCTCPPing = this.native_CTCPPingRPLY;
return true;
}
CIRCServer.prototype.onCTCP_Clientinfo =
function ( e ) {
e.user.ctcp( "CLIENTINFO", "This info is not available to you.", "NOTICE" );
return true;
}
CIRCServer.prototype.onCTCP_Finger =
function ( e ) {
e.user.ctcp( "FINGER", "This info is not available to you.", "NOTICE" );
return true;
}
CIRCServer.prototype.onCTCP_Time =
function ( e ) {
e.user.ctcp( "TIME", "This info is not available to you.", "NOTICE" );
return true;
}
CIRCServer.prototype.onCTCP_Ping =
function ( e ) {
e.user.ctcp( "PONG", "This info is not available to you.", "NOTICE" );
return true;
}
Download File ctcp-privacity.js 3.0 KB