rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 13
136k
| meta
stringlengths 132
347
|
---|---|---|---|
target_socket.local) | !this.server && target_socket.local) | function IRCClient_do_msg(target,type_str,send_str) { if ( (target[0] == "$") && (this.mode&USERMODE_OPER) && ( (this.flags&OLINE_CAN_LGNOTICE) || !this.local) ) return this.global(target,type_str,send_str); var send_to_list = -1; if (target[0] == "@" && ( (target[1] == "#") || target[1] == "&") ) { send_to_list = CHANMODE_OP; target = target.slice(1); } else if (target[0]=="+" && ((target[1] == "#")|| target[1] == "&")) { send_to_list = CHANMODE_VOICE; target = target.slice(1); } if ((target[0] == "#") || (target[0] == "&")) { var chan = Channels[target.toUpperCase()]; if (!chan) { // check to see if it's a #*hostmask* oper message if ( (target[0] == "#") && (this.mode&USERMODE_OPER) && ( (this.flags&OLINE_CAN_LGNOTICE) || !this.local ) ) { return this.global(target,type_str,send_str); } else { this.numeric401(target); return 0; } } if ((chan.mode&CHANMODE_NOOUTSIDE) && !this.channels[chan.nam.toUpperCase()]) { this.numeric(404, chan.nam + " :Cannot send to channel (+n: no outside messages)"); return 0; } if ( (chan.mode&CHANMODE_MODERATED) && !chan.modelist[CHANMODE_VOICE][this.id] && !chan.modelist[CHANMODE_OP][this.id] ) { this.numeric(404, chan.nam + " :Cannot send to channel (+m: moderated)"); return 0; } if (chan.isbanned(this.nuh) && !chan.modelist[CHANMODE_VOICE][this.id] && !chan.modelist[CHANMODE_OP][this.id] ) { this.numeric(404, chan.nam + " :Cannot send to channel (+b: you're banned!)"); return 0; } if(send_to_list == -1) { var str = type_str +" "+ chan.nam +" :"+ send_str; this.bcast_to_channel(chan, str, false); this.bcast_to_channel_servers(chan, str); } else { var prefix_chr; if (send_to_list == CHANMODE_OP) prefix_chr="@"; else if (send_to_list == CHANMODE_VOICE) prefix_chr="+"; var str = type_str +" " + prefix_chr + chan.nam + " :"+ send_str; this.bcast_to_list(chan, str, false, send_to_list); this.bcast_to_channel_servers(chan, str); } } else { if (target.match("[@]")) { var msg_arg = target.split('@'); var real_target = msg_arg[0]; var target_server = searchbyserver(msg_arg[1]); if (!target_server) { this.numeric401(target); return 0; } if (target_server == -1) { this.numeric(407, target + " :Duplicate recipients, no message delivered."); return 0; } target = msg_arg[0] + "@" + msg_arg[1]; } else { var real_target = target; } var target_socket = Users[real_target.toUpperCase()]; if (target_socket) { if (target_server && (target_server.parent != target_socket.parent)) { this.numeric401(target); return 0; } if (target_server && (target_server.id == target_socket.parent) ) target = real_target; var str = type_str + " " + target + " :" + send_str; target_socket.originatorout(str,this); if (target_socket.away && (type_str == "PRIVMSG") && target_socket.local) this.numeric(301, target_socket.nick + " :" + target_socket.away); } else { this.numeric401(target); return 0; } } return 1;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/732e4deb8f1f9cc67fc46af39f20ce3fedd83438/ircd.js/clean/ircd.js |
if (target.match("[@]")) { | if (target.match("[@]+")) { | function IRCClient_do_msg(target,type_str,send_str) { if ((target[0] == "$") && (this.mode&USERMODE_OPER)) return this.global(target,type_str,send_str); send_to_list = -1; if (target[0] == "@" && ( (target[1] == "#") || target[1] == "&") ) { send_to_list = CHANLIST_OP; target = target.slice(1); } else if (target[0]=="+" && ((target[1] == "#")|| target[1] == "&")) { send_to_list = CHANLIST_VOICE; target = target.slice(1); } if ((target[0] == "#") || (target[0] == "&")) { chan = searchbychannel(target); if (!chan) { // check to see if it's a #*hostmask* oper message if ((target[0] == "#") && (this.mode&USERMODE_OPER)) { return this.global(target,type_str,send_str); } else { this.numeric401(target); return 0; } } if ( (chan.mode&CHANMODE_NOOUTSIDE) && !this.onchannel(chan.nam.toUpperCase())) { this.numeric(404, chan.nam + " :Cannot send to channel (+n: no outside messages)"); return 0; } if ( (chan.mode&CHANMODE_MODERATED) && !chan.ismode(this.id,CHANLIST_VOICE) && !chan.ismode(this.id,CHANLIST_OP) ) { this.numeric(404, chan.nam + " :Cannot send to channel (+m: moderated)"); return 0; } if (chan.isbanned(this.ircnuh) && !chan.ismode(this.id,CHANLIST_VOICE) && !chan.ismode(this.id,CHANLIST_OP) ) { this.numeric(404, chan.nam + " :Cannot send to channel (+b: you're banned!)"); return 0; } if(send_to_list == -1) { str = type_str +" "+ chan.nam +" :"+ send_str; this.bcast_to_channel(chan.nam, str, false); this.bcast_to_channel_servers(chan.nam, str); } else { if (send_to_list == CHANLIST_OP) prefix_chr="@"; else if (send_to_list == CHANLIST_VOICE) prefix_chr="+"; str = type_str +" " + prefix_chr + chan.nam + " :"+ send_str; this.bcast_to_list(chan, str, false, send_to_list); this.bcast_to_channel_servers(chan.nam, str); } } else { if (target.match("[@]")) { var msg_arg = target.split('@'); var real_target = msg_arg[0]; var target_server = searchbyserver(msg_arg[1]); if (!target_server) { this.numeric401(target); return 0; } target = msg_arg[0] + "@" + msg_arg[1]; } else { var real_target = target; } target_socket = searchbynick(real_target); if (target_socket) { if (!(target_server && (target_server.nick.toUpperCase() == target_socket.servername.toUpperCase()) ) ) { this.numeric401(target); return 0; } str = type_str + " " + target + " :" + send_str; target_socket.originatorout(str,this); if (target_socket.away && (type_str == "PRIVMSG") && !this.server) this.numeric(301, target_socket.nick + " :" + target_socket.away); } else { this.numeric401(target); return 0; } } return 1;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/17d1ea31769b5a1523d2fea5c1c1b83233859d14/ircd.js/clean/ircd.js |
if (!(target_server && (target_server.nick.toUpperCase() == target_socket.servername.toUpperCase()) ) ) { | if (target_server && (target_server.parent != target_socket.parent)) { | function IRCClient_do_msg(target,type_str,send_str) { if ((target[0] == "$") && (this.mode&USERMODE_OPER)) return this.global(target,type_str,send_str); send_to_list = -1; if (target[0] == "@" && ( (target[1] == "#") || target[1] == "&") ) { send_to_list = CHANLIST_OP; target = target.slice(1); } else if (target[0]=="+" && ((target[1] == "#")|| target[1] == "&")) { send_to_list = CHANLIST_VOICE; target = target.slice(1); } if ((target[0] == "#") || (target[0] == "&")) { chan = searchbychannel(target); if (!chan) { // check to see if it's a #*hostmask* oper message if ((target[0] == "#") && (this.mode&USERMODE_OPER)) { return this.global(target,type_str,send_str); } else { this.numeric401(target); return 0; } } if ( (chan.mode&CHANMODE_NOOUTSIDE) && !this.onchannel(chan.nam.toUpperCase())) { this.numeric(404, chan.nam + " :Cannot send to channel (+n: no outside messages)"); return 0; } if ( (chan.mode&CHANMODE_MODERATED) && !chan.ismode(this.id,CHANLIST_VOICE) && !chan.ismode(this.id,CHANLIST_OP) ) { this.numeric(404, chan.nam + " :Cannot send to channel (+m: moderated)"); return 0; } if (chan.isbanned(this.ircnuh) && !chan.ismode(this.id,CHANLIST_VOICE) && !chan.ismode(this.id,CHANLIST_OP) ) { this.numeric(404, chan.nam + " :Cannot send to channel (+b: you're banned!)"); return 0; } if(send_to_list == -1) { str = type_str +" "+ chan.nam +" :"+ send_str; this.bcast_to_channel(chan.nam, str, false); this.bcast_to_channel_servers(chan.nam, str); } else { if (send_to_list == CHANLIST_OP) prefix_chr="@"; else if (send_to_list == CHANLIST_VOICE) prefix_chr="+"; str = type_str +" " + prefix_chr + chan.nam + " :"+ send_str; this.bcast_to_list(chan, str, false, send_to_list); this.bcast_to_channel_servers(chan.nam, str); } } else { if (target.match("[@]")) { var msg_arg = target.split('@'); var real_target = msg_arg[0]; var target_server = searchbyserver(msg_arg[1]); if (!target_server) { this.numeric401(target); return 0; } target = msg_arg[0] + "@" + msg_arg[1]; } else { var real_target = target; } target_socket = searchbynick(real_target); if (target_socket) { if (!(target_server && (target_server.nick.toUpperCase() == target_socket.servername.toUpperCase()) ) ) { this.numeric401(target); return 0; } str = type_str + " " + target + " :" + send_str; target_socket.originatorout(str,this); if (target_socket.away && (type_str == "PRIVMSG") && !this.server) this.numeric(301, target_socket.nick + " :" + target_socket.away); } else { this.numeric401(target); return 0; } } return 1;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/17d1ea31769b5a1523d2fea5c1c1b83233859d14/ircd.js/clean/ircd.js |
if (target_server && (target_server.id == target_socket.parent) ) target = real_target; | function IRCClient_do_msg(target,type_str,send_str) { if ((target[0] == "$") && (this.mode&USERMODE_OPER)) return this.global(target,type_str,send_str); send_to_list = -1; if (target[0] == "@" && ( (target[1] == "#") || target[1] == "&") ) { send_to_list = CHANLIST_OP; target = target.slice(1); } else if (target[0]=="+" && ((target[1] == "#")|| target[1] == "&")) { send_to_list = CHANLIST_VOICE; target = target.slice(1); } if ((target[0] == "#") || (target[0] == "&")) { chan = searchbychannel(target); if (!chan) { // check to see if it's a #*hostmask* oper message if ((target[0] == "#") && (this.mode&USERMODE_OPER)) { return this.global(target,type_str,send_str); } else { this.numeric401(target); return 0; } } if ( (chan.mode&CHANMODE_NOOUTSIDE) && !this.onchannel(chan.nam.toUpperCase())) { this.numeric(404, chan.nam + " :Cannot send to channel (+n: no outside messages)"); return 0; } if ( (chan.mode&CHANMODE_MODERATED) && !chan.ismode(this.id,CHANLIST_VOICE) && !chan.ismode(this.id,CHANLIST_OP) ) { this.numeric(404, chan.nam + " :Cannot send to channel (+m: moderated)"); return 0; } if (chan.isbanned(this.ircnuh) && !chan.ismode(this.id,CHANLIST_VOICE) && !chan.ismode(this.id,CHANLIST_OP) ) { this.numeric(404, chan.nam + " :Cannot send to channel (+b: you're banned!)"); return 0; } if(send_to_list == -1) { str = type_str +" "+ chan.nam +" :"+ send_str; this.bcast_to_channel(chan.nam, str, false); this.bcast_to_channel_servers(chan.nam, str); } else { if (send_to_list == CHANLIST_OP) prefix_chr="@"; else if (send_to_list == CHANLIST_VOICE) prefix_chr="+"; str = type_str +" " + prefix_chr + chan.nam + " :"+ send_str; this.bcast_to_list(chan, str, false, send_to_list); this.bcast_to_channel_servers(chan.nam, str); } } else { if (target.match("[@]")) { var msg_arg = target.split('@'); var real_target = msg_arg[0]; var target_server = searchbyserver(msg_arg[1]); if (!target_server) { this.numeric401(target); return 0; } target = msg_arg[0] + "@" + msg_arg[1]; } else { var real_target = target; } target_socket = searchbynick(real_target); if (target_socket) { if (!(target_server && (target_server.nick.toUpperCase() == target_socket.servername.toUpperCase()) ) ) { this.numeric401(target); return 0; } str = type_str + " " + target + " :" + send_str; target_socket.originatorout(str,this); if (target_socket.away && (type_str == "PRIVMSG") && !this.server) this.numeric(301, target_socket.nick + " :" + target_socket.away); } else { this.numeric401(target); return 0; } } return 1;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/17d1ea31769b5a1523d2fea5c1c1b83233859d14/ircd.js/clean/ircd.js |
|
function IRCClient_do_msg(target,type_str,send_str) { send_to_list = -1; if (target[0] == "@" && ( (target[1] == "#") || target[1] == "&") ) { send_to_list = CHANLIST_OP; target = target.slice(1); } else if (target[0]=="+" && ((target[1] == "#")|| target[1] == "&")) { send_to_list = CHANLIST_VOICE; target = target.slice(1); } if ((target[0] == "#") || (target[0] == "&")) { chan = searchbychannel(target); if (!chan) { this.numeric401(target); return 0; } if ( (chan.mode&CHANMODE_NOOUTSIDE) && !this.onchannel(chan.nam.toUpperCase())) { this.numeric(404, chan.nam + " :Cannot send to channel (+n: no outside messages)"); return 0; } if ( (chan.mode&CHANMODE_MODERATED) && !chan.ismode(this.id,CHANLIST_VOICE) && !chan.ismode(this.id,CHANLIST_OP) ) { this.numeric(404, chan.nam + " :Cannot send to channel (+m: moderated)"); return 0; } if (chan.isbanned(this.ircnuh) && !chan.ismode(this.id,CHANLIST_VOICE) && !chan.ismode(this.id,CHANLIST_OP) ) { this.numeric(404, chan.nam + " :Cannot send to channel (+b: you're banned!)"); return 0; } if(send_to_list == -1) { str = type_str +" "+ chan.nam +" :"+ send_str; this.bcast_to_channel(chan.nam, str, false); this.bcast_to_channel_servers(chan.nam, str); } else { if (send_to_list == CHANLIST_OP) prefix_chr="@"; else if (send_to_list == CHANLIST_VOICE) prefix_chr="+"; str = type_str +" " + prefix_chr + chan.nam + " :"+ send_str; this.bcast_to_list(chan, str, false, send_to_list); this.bcast_to_channel_servers(chan.nam, str); } } else { target_socket = searchbynick(target); if (target_socket) { str = type_str +" " + target_socket.nick +" :"+ send_str; target_socket.originatorout(str,this); if (target_socket.away && (type_str == "PRIVMSG") ) this.numeric(301, target_socket.nick + " :" + target_socket.away); } else { this.numeric401(target); return 0; } }} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js |
||
var chan = chan_name.toUpperCase(); | chan = chan_name.toUpperCase(); | function IRCClient_do_part(chan_name) { if((chan_name[0] != "#") && (chan_name[0] != "&") && !this.parent) { this.numeric403(chan_name); return 0; } var chan = chan_name.toUpperCase(); if (Channels[chan] != undefined) { if (this.onchannel(chan)) { var str = "PART " + Channels[chan].nam; if (this.parent) this.bcast_to_channel(Channels[chan].nam, str, false); else this.bcast_to_channel(Channels[chan].nam, str, true); this.rmchan(Channels[chan]); if (chan_name[0] != "&") this.bcast_to_servers(str); } else if (!this.parent) { this.numeric442(chan_name); } } else if (!this.parent) { this.numeric403(chan_name); }} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/932a434bc900126d724150bfed8b94b9a8e530e1/ircd.js/buggy/ircd.js |
var str = "PART " + Channels[chan].nam; | str = "PART " + Channels[chan].nam; | function IRCClient_do_part(chan_name) { if((chan_name[0] != "#") && (chan_name[0] != "&") && !this.parent) { this.numeric403(chan_name); return 0; } var chan = chan_name.toUpperCase(); if (Channels[chan] != undefined) { if (this.onchannel(chan)) { var str = "PART " + Channels[chan].nam; if (this.parent) this.bcast_to_channel(Channels[chan].nam, str, false); else this.bcast_to_channel(Channels[chan].nam, str, true); this.rmchan(Channels[chan]); if (chan_name[0] != "&") this.bcast_to_servers(str); } else if (!this.parent) { this.numeric442(chan_name); } } else if (!this.parent) { this.numeric403(chan_name); }} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/932a434bc900126d724150bfed8b94b9a8e530e1/ircd.js/buggy/ircd.js |
chan = chan_name.toUpperCase(); | var chan = chan_name.toUpperCase(); | function IRCClient_do_part(chan_name) { if((chan_name[0] != "#") && (chan_name[0] != "&") && !this.parent) { this.numeric403(chan_name); return 0; } chan = chan_name.toUpperCase(); if (Channels[chan] != undefined) { if (this.onchannel(chan)) { str = "PART " + Channels[chan].nam; if (this.parent) this.bcast_to_channel(Channels[chan].nam, str, false); else this.bcast_to_channel(Channels[chan].nam, str, true); this.rmchan(Channels[chan]); if (chan_name[0] != "&") this.bcast_to_servers(str); } else if (!this.parent) { this.numeric442(chan_name); } } else if (!this.parent) { this.numeric403(chan_name); }} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/916eecaff32dd50d9b82305f9be06517866554ea/ircd.js/clean/ircd.js |
str = "PART " + Channels[chan].nam; | var str = "PART " + Channels[chan].nam; | function IRCClient_do_part(chan_name) { if((chan_name[0] != "#") && (chan_name[0] != "&") && !this.parent) { this.numeric403(chan_name); return 0; } chan = chan_name.toUpperCase(); if (Channels[chan] != undefined) { if (this.onchannel(chan)) { str = "PART " + Channels[chan].nam; if (this.parent) this.bcast_to_channel(Channels[chan].nam, str, false); else this.bcast_to_channel(Channels[chan].nam, str, true); this.rmchan(Channels[chan]); if (chan_name[0] != "&") this.bcast_to_servers(str); } else if (!this.parent) { this.numeric442(chan_name); } } else if (!this.parent) { this.numeric403(chan_name); }} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/916eecaff32dd50d9b82305f9be06517866554ea/ircd.js/clean/ircd.js |
this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); | this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": this.numeric(241,"L <hostmask> * <servername> <maxdepth>"); break; case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var this_uptime=time() - server_uptime; var updays=Math.floor(this_uptime / 86400); if (updays) this_uptime %= 86400; var uphours=Math.floor(this_uptime/(60*60)); var upmins=(Math.floor(this_uptime/60))%60; var upsec=this_uptime%60; var str = format("Server Up %u days, %u:%02u:%02u", updays,uphours,upmins,upsec); this.numeric(242,":" + str); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); | this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": this.numeric(241,"L <hostmask> * <servername> <maxdepth>"); break; case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var this_uptime=time() - server_uptime; var updays=Math.floor(this_uptime / 86400); if (updays) this_uptime %= 86400; var uphours=Math.floor(this_uptime/(60*60)); var upmins=(Math.floor(this_uptime/60))%60; var upsec=this_uptime%60; var str = format("Server Up %u days, %u:%02u:%02u", updays,uphours,upmins,upsec); this.numeric(242,":" + str); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); | this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": this.numeric(241,"L <hostmask> * <servername> <maxdepth>"); break; case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var this_uptime=time() - server_uptime; var updays=Math.floor(this_uptime / 86400); if (updays) this_uptime %= 86400; var uphours=Math.floor(this_uptime/(60*60)); var upmins=(Math.floor(this_uptime/60))%60; var upsec=this_uptime%60; var str = format("Server Up %u days, %u:%02u:%02u", updays,uphours,upmins,upsec); this.numeric(242,":" + str); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); | this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": this.numeric(241,"L <hostmask> * <servername> <maxdepth>"); break; case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var this_uptime=time() - server_uptime; var updays=Math.floor(this_uptime / 86400); if (updays) this_uptime %= 86400; var uphours=Math.floor(this_uptime/(60*60)); var upmins=(Math.floor(this_uptime/60))%60; var upsec=this_uptime%60; var str = format("Server Up %u days, %u:%02u:%02u", updays,uphours,upmins,upsec); this.numeric(242,":" + str); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); | if (KLines[kline].hostmask) { this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": this.numeric(241,"L <hostmask> * <servername> <maxdepth>"); break; case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var this_uptime=time() - server_uptime; var updays=Math.floor(this_uptime / 86400); if (updays) this_uptime %= 86400; var uphours=Math.floor(this_uptime/(60*60)); var upmins=(Math.floor(this_uptime/60))%60; var upsec=this_uptime%60; var str = format("Server Up %u days, %u:%02u:%02u", updays,uphours,upmins,upsec); this.numeric(242,":" + str); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
case "L": | case "L": /* FIXME */ | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": this.numeric(241,"L <hostmask> * <servername> <maxdepth>"); break; case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var this_uptime=time() - server_uptime; var updays=Math.floor(this_uptime / 86400); if (updays) this_uptime %= 86400; var uphours=Math.floor(this_uptime/(60*60)); var upmins=(Math.floor(this_uptime/60))%60; var upsec=this_uptime%60; var str = format("Server Up %u days, %u:%02u:%02u", updays,uphours,upmins,upsec); this.numeric(242,":" + str); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
case "l": | case "l": /* FIXME */ | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": this.numeric(241,"L <hostmask> * <servername> <maxdepth>"); break; case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var this_uptime=time() - server_uptime; var updays=Math.floor(this_uptime / 86400); if (updays) this_uptime %= 86400; var uphours=Math.floor(this_uptime/(60*60)); var upmins=(Math.floor(this_uptime/60))%60; var upsec=this_uptime%60; var str = format("Server Up %u days, %u:%02u:%02u", updays,uphours,upmins,upsec); this.numeric(242,":" + str); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(212,"<command> <count>"); | for (c in Profile) { var sm = Profile[c]; this.numeric(212, c + " " + sm.ticks + " " + sm.executions); } | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": this.numeric(241,"L <hostmask> * <servername> <maxdepth>"); break; case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var this_uptime=time() - server_uptime; var updays=Math.floor(this_uptime / 86400); if (updays) this_uptime %= 86400; var uphours=Math.floor(this_uptime/(60*60)); var upmins=(Math.floor(this_uptime/60))%60; var upsec=this_uptime%60; var str = format("Server Up %u days, %u:%02u:%02u", updays,uphours,upmins,upsec); this.numeric(242,":" + str); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); | this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": this.numeric(241,"L <hostmask> * <servername> <maxdepth>"); break; case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var this_uptime=time() - server_uptime; var updays=Math.floor(this_uptime / 86400); if (updays) this_uptime %= 86400; var uphours=Math.floor(this_uptime/(60*60)); var upmins=(Math.floor(this_uptime/60))%60; var upsec=this_uptime%60; var str = format("Server Up %u days, %u:%02u:%02u", updays,uphours,upmins,upsec); this.numeric(242,":" + str); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); | this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": this.numeric(241,"L <hostmask> * <servername> <maxdepth>"); break; case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var this_uptime=time() - server_uptime; var updays=Math.floor(this_uptime / 86400); if (updays) this_uptime %= 86400; var uphours=Math.floor(this_uptime/(60*60)); var upmins=(Math.floor(this_uptime/60))%60; var upsec=this_uptime%60; var str = format("Server Up %u days, %u:%02u:%02u", updays,uphours,upmins,upsec); this.numeric(242,":" + str); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(241,"L <hostmask> * <servername> <maxdepth>"); break; | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var this_uptime=time() - server_uptime; var updays=format("%lu",this_uptime / 86400); if (updays < 1) updays=0; var uphours=format("%lu",(this_uptime-(updays*86400))/3600); if (uphours < 1) uphours=0; var upmins=format("%02lu",((this_uptime-(updays*86400))-(uphours*3600))/60); if (upmins < 1) upmins=0; var upsec=format("%02lu",(((this_uptime-(updays*86400))-(uphours*3600))-(upmins*60))); if (upmins == "0") upmins = "00"; this.numeric(242,":Server Up " + updays + " days " + uphours + ":" + upmins + ":" + upsec); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/648f341bbfcf39d714c3a0746ccef5a350ef8d6a/ircd.js/clean/ircd.js |
|
var updays=format("%lu",this_uptime / 86400); if (updays < 1) updays=0; var uphours=format("%lu",(this_uptime-(updays*86400))/3600); if (uphours < 1) uphours=0; var upmins=format("%02lu",((this_uptime-(updays*86400))-(uphours*3600))/60); if (upmins < 1) upmins=0; var upsec=format("%02lu",(((this_uptime-(updays*86400))-(uphours*3600))-(upmins*60))); if (upmins == "0") upmins = "00"; this.numeric(242,":Server Up " + updays + " days " + uphours + ":" + upmins + ":" + upsec); | var updays=Math.floor(this_uptime / 86400); if (updays) this_uptime %= 86400; var uphours=Math.floor(this_uptime/(60*60)); var upmins=(Math.floor(this_uptime/60))%60; var upsec=this_uptime%60; var str = format("Server Up %u days %u:%02u:%02u", updays,uphours,upmins,upsec); this.numeric(242,":" + str); | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": this.numeric(241,"L <hostmask> * <servername> <maxdepth>"); break; case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var this_uptime=time() - server_uptime; var updays=format("%lu",this_uptime / 86400); if (updays < 1) updays=0; var uphours=format("%lu",(this_uptime-(updays*86400))/3600); if (uphours < 1) uphours=0; var upmins=format("%02lu",((this_uptime-(updays*86400))-(uphours*3600))/60); if (upmins < 1) upmins=0; var upsec=format("%02lu",(((this_uptime-(updays*86400))-(uphours*3600))-(upmins*60))); if (upmins == "0") upmins = "00"; this.numeric(242,":Server Up " + updays + " days " + uphours + ":" + upmins + ":" + upsec); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/a697289b2285a18656115e68c62bcc033aa5b402/ircd.js/clean/ircd.js |
var upsecs=time() - server_uptime; var updays=upsecs / 86400; | var this_uptime=time() - server_uptime; var updays=format("%lu",this_uptime / 86400); | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var upsecs=time() - server_uptime; var updays=upsecs / 86400; if (updays < 1) updays=0; var uphours=(upsecs-(updays*86400))/3600; if (uphours < 1) uphours=0; var upmins=((upsecs-(updays*86400))-(uphours*3600))/60; if (upmins < 1) upmins=0; var upsec=(((upsecs-(updays*86400))-(uphours*3600))-(upmins*60)); this.numeric(242,":Server Up " + updays + " days " + uphours + ":" + upmins + ":" + upsec); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/8873ee606eff83dfffb34fbfda973ddb55c1e1ba/ircd.js/clean/ircd.js |
var uphours=(upsecs-(updays*86400))/3600; | var uphours=format("%lu",(this_uptime-(updays*86400))/3600); | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var upsecs=time() - server_uptime; var updays=upsecs / 86400; if (updays < 1) updays=0; var uphours=(upsecs-(updays*86400))/3600; if (uphours < 1) uphours=0; var upmins=((upsecs-(updays*86400))-(uphours*3600))/60; if (upmins < 1) upmins=0; var upsec=(((upsecs-(updays*86400))-(uphours*3600))-(upmins*60)); this.numeric(242,":Server Up " + updays + " days " + uphours + ":" + upmins + ":" + upsec); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/8873ee606eff83dfffb34fbfda973ddb55c1e1ba/ircd.js/clean/ircd.js |
var upmins=((upsecs-(updays*86400))-(uphours*3600))/60; | var upmins=format("%02lu",((this_uptime-(updays*86400))-(uphours*3600))/60); | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var upsecs=time() - server_uptime; var updays=upsecs / 86400; if (updays < 1) updays=0; var uphours=(upsecs-(updays*86400))/3600; if (uphours < 1) uphours=0; var upmins=((upsecs-(updays*86400))-(uphours*3600))/60; if (upmins < 1) upmins=0; var upsec=(((upsecs-(updays*86400))-(uphours*3600))-(upmins*60)); this.numeric(242,":Server Up " + updays + " days " + uphours + ":" + upmins + ":" + upsec); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/8873ee606eff83dfffb34fbfda973ddb55c1e1ba/ircd.js/clean/ircd.js |
var upsec=(((upsecs-(updays*86400))-(uphours*3600))-(upmins*60)); | var upsec=format("%02lu",(((this_uptime-(updays*86400))-(uphours*3600))-(upmins*60))); if (upmins == "0") upmins = "00"; | function IRCClient_do_stats(statschar) { switch(statschar[0]) { case "C": case "c": var cline_port; for (cline in CLines) { if(CLines[cline].port) cline_port = CLines[cline].port; else cline_port = "*"; this.numeric(213,"C " + CLines[cline].host + " * " + CLines[cline].servername + " " + cline_port + " " + CLines[cline].ircclass); if (NLines[cline]) this.numeric(214,"N " + NLines[cline].host + " * " + NLines[cline].servername + " " + NLines[cline].flags + " " + NLines[cline].ircclass); } break; case "H": case "h": for (hl in HLines) { this.numeric(244,"H " + HLines[hl].allowedmask + " * " + HLines[hl].servername); } break; case "I": case "i": var my_port; for (iline in ILines) { if (!ILines[iline].port) my_port = "*"; else my_port = ILines[iline].port; this.numeric(215,"I " + ILines[iline].ipmask + " * " + ILines[iline].hostmask + " " + my_port + " " + ILines[iline].ircclass); } break; case "K": case "k": for (kline in KLines) { if(KLines[kline].hostmask) this.numeric(216, KLines[kline].type + " " + KLines[kline].hostmask + " * * :" + KLines[kline].reason); } break; case "L": case "l": this.numeric(211,"<linkname> <sendq> <sentmessages> <sentbytes> <receivedmessages> <receivedbytes> <timeopen>"); break; case "M": case "m": this.numeric(212,"<command> <count>"); break; case "O": case "o": for (oline in OLines) { this.numeric(243, "O " + OLines[oline].hostmask + " * " + OLines[oline].nick); } break; case "U": for (uline in ULines) { this.numeric(246, "U " + ULines[uline] + " * * 0 -1"); } break; case "u": var upsecs=time() - server_uptime; var updays=upsecs / 86400; if (updays < 1) updays=0; var uphours=(upsecs-(updays*86400))/3600; if (uphours < 1) uphours=0; var upmins=((upsecs-(updays*86400))-(uphours*3600))/60; if (upmins < 1) upmins=0; var upsec=(((upsecs-(updays*86400))-(uphours*3600))-(upmins*60)); this.numeric(242,":Server Up " + updays + " days " + uphours + ":" + upmins + ":" + upsec); break; case "Y": case "y": var yl; for (thisYL in YLines) { yl = YLines[thisYL]; this.numeric(218,"Y " + thisYL + " " + yl.pingfreq + " " + yl.connfreq + " " + yl.maxlinks + " " + yl.sendq); } break; default: break; } this.numeric(219, statschar[0] + " :End of /STATS Command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/8873ee606eff83dfffb34fbfda973ddb55c1e1ba/ircd.js/clean/ircd.js |
this.numeric200(target,Servers[nick.parent].nick); | this.numeric200(target,Servers[nick.parent.toLowerCase()].nick); | function IRCClient_do_trace(target) { var server; var nick; if (target.match(/[.]/)) { // probably a server server = searchbyserver(target); if (server == -1) { // we hunted ourselves // FIXME: What do these numbers mean? O_o? this.numeric206("30","1","0",servername); this.trace_all_opers(); } else if (server) { server.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,server.nick); return 0; } else { this.numeric402(target); return 0; } } else { // user. nick = Users[target.toUpperCase()]; if (nick.local) { if (nick.mode&USERMODE_OPER) this.numeric204(nick); else this.numeric205(nick); } else if (nick) { nick.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,Servers[nick.parent].nick); return 0; } else { this.numeric402(target); return 0; } } this.numeric(262, target + " :End of /TRACE.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/9b31fc080a4a6c10c64fce10214bfae574877b10/ircd.js/clean/ircd.js |
var server; var nick; | var server = searchbyserver(target); | function IRCClient_do_trace(target) { var server; var nick; if (target.match(/[.]/)) { // probably a server server = searchbyserver(target); if (server == -1) { // we hunted ourselves // FIXME: What do these numbers mean? O_o? this.numeric206("30","1","0",servername); this.trace_all_opers(); } else if (server) { server.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,server.nick); return 0; } else { this.numeric402(target); return 0; } } else { // user. nick = Users[target.toUpperCase()]; if (nick.local) { if (nick.mode&USERMODE_OPER) this.numeric204(nick); else this.numeric205(nick); } else if (nick) { nick.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,Servers[nick.parent.toLowerCase()].nick); return 0; } else { this.numeric402(target); return 0; } } this.numeric(262, target + " :End of /TRACE.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/385152494ebecad807543f9d727a31ae763537cc/ircd.js/buggy/ircd.js |
if (target.match(/[.]/)) { server = searchbyserver(target); if (server == -1) { this.numeric206("30","1","0",servername); this.trace_all_opers(); } else if (server) { server.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,server.nick); return 0; } else { | if (server == -1) { this.numeric206("30","1","0",servername); this.trace_all_opers(); } else if (server) { server.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,server.nick); return 0; } else { var nick = Users[target.toUpperCase()]; if (!nick) { | function IRCClient_do_trace(target) { var server; var nick; if (target.match(/[.]/)) { // probably a server server = searchbyserver(target); if (server == -1) { // we hunted ourselves // FIXME: What do these numbers mean? O_o? this.numeric206("30","1","0",servername); this.trace_all_opers(); } else if (server) { server.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,server.nick); return 0; } else { this.numeric402(target); return 0; } } else { // user. nick = Users[target.toUpperCase()]; if (nick.local) { if (nick.mode&USERMODE_OPER) this.numeric204(nick); else this.numeric205(nick); } else if (nick) { nick.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,Servers[nick.parent.toLowerCase()].nick); return 0; } else { this.numeric402(target); return 0; } } this.numeric(262, target + " :End of /TRACE.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/385152494ebecad807543f9d727a31ae763537cc/ircd.js/buggy/ircd.js |
} } else { nick = Users[target.toUpperCase()]; if (nick.local) { | } else if (nick.local) { | function IRCClient_do_trace(target) { var server; var nick; if (target.match(/[.]/)) { // probably a server server = searchbyserver(target); if (server == -1) { // we hunted ourselves // FIXME: What do these numbers mean? O_o? this.numeric206("30","1","0",servername); this.trace_all_opers(); } else if (server) { server.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,server.nick); return 0; } else { this.numeric402(target); return 0; } } else { // user. nick = Users[target.toUpperCase()]; if (nick.local) { if (nick.mode&USERMODE_OPER) this.numeric204(nick); else this.numeric205(nick); } else if (nick) { nick.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,Servers[nick.parent.toLowerCase()].nick); return 0; } else { this.numeric402(target); return 0; } } this.numeric(262, target + " :End of /TRACE.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/385152494ebecad807543f9d727a31ae763537cc/ircd.js/buggy/ircd.js |
} else if (nick) { | } else { | function IRCClient_do_trace(target) { var server; var nick; if (target.match(/[.]/)) { // probably a server server = searchbyserver(target); if (server == -1) { // we hunted ourselves // FIXME: What do these numbers mean? O_o? this.numeric206("30","1","0",servername); this.trace_all_opers(); } else if (server) { server.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,server.nick); return 0; } else { this.numeric402(target); return 0; } } else { // user. nick = Users[target.toUpperCase()]; if (nick.local) { if (nick.mode&USERMODE_OPER) this.numeric204(nick); else this.numeric205(nick); } else if (nick) { nick.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,Servers[nick.parent.toLowerCase()].nick); return 0; } else { this.numeric402(target); return 0; } } this.numeric(262, target + " :End of /TRACE.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/385152494ebecad807543f9d727a31ae763537cc/ircd.js/buggy/ircd.js |
return 0; } else { this.numeric402(target); return 0; | function IRCClient_do_trace(target) { var server; var nick; if (target.match(/[.]/)) { // probably a server server = searchbyserver(target); if (server == -1) { // we hunted ourselves // FIXME: What do these numbers mean? O_o? this.numeric206("30","1","0",servername); this.trace_all_opers(); } else if (server) { server.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,server.nick); return 0; } else { this.numeric402(target); return 0; } } else { // user. nick = Users[target.toUpperCase()]; if (nick.local) { if (nick.mode&USERMODE_OPER) this.numeric204(nick); else this.numeric205(nick); } else if (nick) { nick.rawout(":" + this.nick + " TRACE " + target); this.numeric200(target,Servers[nick.parent.toLowerCase()].nick); return 0; } else { this.numeric402(target); return 0; } } this.numeric(262, target + " :End of /TRACE.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/385152494ebecad807543f9d727a31ae763537cc/ircd.js/buggy/ircd.js |
|
this.numeric(393,format(':%-25s %-9s %-30s',u.alias,'Node'+node,u.host_name)); | this.numeric(393,format(':%-25s %-9s %-30s',u.alias,'Node'+node, u.host_name)); | function IRCClient_do_users() { var usersshown; var u; this.numeric(392,':UserID Terminal Host'); usersshown=0; for(node in system.node_list) { if(system.node_list[node].status == NODE_INUSE) { u=new User(system.node_list[node].useron); this.numeric(393,format(':%-25s %-9s %-30s',u.alias,'Node'+node,u.host_name)); usersshown++; } } if(usersshown) { this.numeric(394,':End of users'); } else { this.numeric(395,':Nobody logged in'); }} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(334,":/WHO [+|-][acghimnosuCM] <args> <mask>"); | this.numeric(334,":/WHO [+|-][acghilmnostuCIM] <args> <mask>"); | function IRCClient_do_who_usage() { this.numeric(334,":/WHO [+|-][acghimnosuCM] <args> <mask>"); this.numeric(334,":The modes as above work exactly like channel modes."); this.numeric(334,":<mask> may be '*' or in nick!user@host notation."); this.numeric(334,":i.e. '/WHO +a *.ca' would match all away users from *.ca"); this.numeric(334,":No args/mask matches to everything by default."); this.numeric(334,":a : User is away."); this.numeric(334,":c <chan>: User is on <@+><#channel>, no wildcards. Can check +o/+v."); this.numeric(334,":g <rnam>: Check against realname field, wildcards allowed."); this.numeric(334,":h <host>: Check user's hostname, wildcards allowed."); this.numeric(334,":i <ip> : Check against IP address, wildcards allowed."); this.numeric(334,":l <clas>: User is a member of <clas> irc class as defined on a Y:Line."); this.numeric(334,":m <umde>: User has <umodes> set, -+ allowed."); this.numeric(334,":n <nick>: User's nickname matches <nick>, wildcards allowed."); this.numeric(334,":o : User is an IRC Operator."); this.numeric(334,":s <srvr>: User is on <server>, wildcards allowed."); this.numeric(334,":t <time>: User has been on for more than (+) or less than (-) <time> secs."); this.numeric(334,":u <user>: User's username field matches, wildcards allowed."); this.numeric(334,":C : Only display first channel that the user matches."); this.numeric(334,":I : Only return IP addresses (as opposed to hostnames.)"); this.numeric(334,":M : Only check against channels you're a member of."); this.numeric(315,"? :End of /WHO list. (Usage)");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/eb0bdd5a634f6c8dd2a311bfb842586e6cea8219/ircd.js/buggy/ircd.js |
this.numeric(334,":/WHO [+|-][acghimnosuCM] <args>"); | this.numeric(334,":/WHO [+|-][acghimnosuCM] <args> <mask>"); | function IRCClient_do_who_usage() { this.numeric(334,":/WHO [+|-][acghimnosuCM] <args>"); this.numeric(334,":The modes as above work exactly like channel modes."); this.numeric(334,":a : User is away."); this.numeric(334,":c <chan>: User is on <channel>, no wildcards."); this.numeric(334,":g <rnam>: Check against realname field, wildcards allowed."); this.numeric(334,":h <host>: Check user's hostname, wildcards allowed."); this.numeric(334,":i <ip> : Check against IP address, wildcards allowed."); this.numeric(334,":m <umde>: User has <umodes> set, -+ allowed."); this.numeric(334,":n <nick>: User's nickname matches <nick>, wildcards allowed."); this.numeric(334,":o : User is an IRC Operator."); this.numeric(334,":s <srvr>: User is on <server>, wildcards allowed."); this.numeric(334,":u <user>: User's username field matches, wildcards allowed."); this.numeric(334,":C : Only display first channel that the user matches."); this.numeric(334,":M : Only check against channels you're a member of."); this.numeric(315,"? :End of /WHO list. (Usage)");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/12955b5af5c506c8f097913f44a07b38f976e85c/ircd.js/buggy/ircd.js |
this.numeric(334,":<mask> may be '*' or in nick!user@host notation."); this.numeric(334,":i.e. '/WHO +a *.ca' would match all away users from *.ca"); this.numeric(334,":No args/mask matches to everything by default."); | function IRCClient_do_who_usage() { this.numeric(334,":/WHO [+|-][acghimnosuCM] <args>"); this.numeric(334,":The modes as above work exactly like channel modes."); this.numeric(334,":a : User is away."); this.numeric(334,":c <chan>: User is on <channel>, no wildcards."); this.numeric(334,":g <rnam>: Check against realname field, wildcards allowed."); this.numeric(334,":h <host>: Check user's hostname, wildcards allowed."); this.numeric(334,":i <ip> : Check against IP address, wildcards allowed."); this.numeric(334,":m <umde>: User has <umodes> set, -+ allowed."); this.numeric(334,":n <nick>: User's nickname matches <nick>, wildcards allowed."); this.numeric(334,":o : User is an IRC Operator."); this.numeric(334,":s <srvr>: User is on <server>, wildcards allowed."); this.numeric(334,":u <user>: User's username field matches, wildcards allowed."); this.numeric(334,":C : Only display first channel that the user matches."); this.numeric(334,":M : Only check against channels you're a member of."); this.numeric(315,"? :End of /WHO list. (Usage)");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/12955b5af5c506c8f097913f44a07b38f976e85c/ircd.js/buggy/ircd.js |
|
this.numeric(311, wi.nick + " " + wi.uprefix + " " + wi.hostname + " * :" + wi.realname); | this.numeric(311, wi.nick + " " + wi.uprefix + " " + wi.hostname + " * :" + wi.realname); | function IRCClient_do_whois(wi) { if (!wi) return 0; this.numeric(311, wi.nick + " " + wi.uprefix + " " + wi.hostname + " * :" + wi.realname); var userchans=""; for (i in wi.channels) { var chan = wi.channels[i]; if (!(chan.mode&CHANMODE_SECRET||chan.mode&CHANMODE_PRIVATE) || this.channels[chan.nam.toUpperCase()] || this.mode&USERMODE_OPER) { if (userchans) userchans += " "; if (chan.modelist[CHANMODE_OP][wi.id]) userchans += "@"; else if (chan.modelist[CHANMODE_VOICE][wi.id]) userchans += "+"; userchans += chan.nam; } } if (userchans) this.numeric(319, wi.nick + " :" + userchans); if (wi.local) this.numeric(312, wi.nick + " " + servername + " :" + serverdesc); else { wi_server = searchbyserver(wi.servername); this.numeric(312, wi.nick + " " + wi_server.nick + " :" + wi_server.info); } if (wi.mode&USERMODE_OPER) this.numeric(313, wi.nick + " :is an IRC operator."); if (wi.away) this.numeric(301, wi.nick + " :" + wi.away); if (wi.local) this.numeric(317, wi.nick + " " + (time() - wi.talkidle) + " " + wi.connecttime + " :seconds idle, signon time");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(312, wi.nick + " " + wi_server.nick + " :" + wi_server.info); | this.numeric(312, wi.nick + " " + wi_server.nick + " :" + wi_server.info); | function IRCClient_do_whois(wi) { if (!wi) return 0; this.numeric(311, wi.nick + " " + wi.uprefix + " " + wi.hostname + " * :" + wi.realname); var userchans=""; for (i in wi.channels) { var chan = wi.channels[i]; if (!(chan.mode&CHANMODE_SECRET||chan.mode&CHANMODE_PRIVATE) || this.channels[chan.nam.toUpperCase()] || this.mode&USERMODE_OPER) { if (userchans) userchans += " "; if (chan.modelist[CHANMODE_OP][wi.id]) userchans += "@"; else if (chan.modelist[CHANMODE_VOICE][wi.id]) userchans += "+"; userchans += chan.nam; } } if (userchans) this.numeric(319, wi.nick + " :" + userchans); if (wi.local) this.numeric(312, wi.nick + " " + servername + " :" + serverdesc); else { wi_server = searchbyserver(wi.servername); this.numeric(312, wi.nick + " " + wi_server.nick + " :" + wi_server.info); } if (wi.mode&USERMODE_OPER) this.numeric(313, wi.nick + " :is an IRC operator."); if (wi.away) this.numeric(301, wi.nick + " :" + wi.away); if (wi.local) this.numeric(317, wi.nick + " " + (time() - wi.talkidle) + " " + wi.connecttime + " :seconds idle, signon time");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(317, wi.nick + " " + (time() - wi.talkidle) + " " + wi.connecttime + " :seconds idle, signon time"); | this.numeric(317, wi.nick + " " + (time() - wi.talkidle) + " " + wi.connecttime + " :seconds idle, signon time"); | function IRCClient_do_whois(wi) { if (!wi) return 0; this.numeric(311, wi.nick + " " + wi.uprefix + " " + wi.hostname + " * :" + wi.realname); var userchans=""; for (i in wi.channels) { var chan = wi.channels[i]; if (!(chan.mode&CHANMODE_SECRET||chan.mode&CHANMODE_PRIVATE) || this.channels[chan.nam.toUpperCase()] || this.mode&USERMODE_OPER) { if (userchans) userchans += " "; if (chan.modelist[CHANMODE_OP][wi.id]) userchans += "@"; else if (chan.modelist[CHANMODE_VOICE][wi.id]) userchans += "+"; userchans += chan.nam; } } if (userchans) this.numeric(319, wi.nick + " :" + userchans); if (wi.local) this.numeric(312, wi.nick + " " + servername + " :" + serverdesc); else { wi_server = searchbyserver(wi.servername); this.numeric(312, wi.nick + " " + wi_server.nick + " :" + wi_server.info); } if (wi.mode&USERMODE_OPER) this.numeric(313, wi.nick + " :is an IRC operator."); if (wi.away) this.numeric(301, wi.nick + " :" + wi.away); if (wi.local) this.numeric(317, wi.nick + " " + (time() - wi.talkidle) + " " + wi.connecttime + " :seconds idle, signon time");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
if (Channels[wi.channels[i]].ismode(wi.id,CHANLIST_OP)) | if (Channels[wi.channels[i]].ismode(wi.id,CHANMODE_OP)) | function IRCClient_do_whois(wi) { if (!wi) return 0; this.numeric(311, wi.nick + " " + wi.uprefix + " " + wi.hostname + " * :" + wi.realname); var userchans=""; for (i in wi.channels) { if(wi.channels[i] && (!(Channels[wi.channels[i]].mode&CHANMODE_SECRET || Channels[wi.channels[i]].mode&CHANMODE_PRIVATE) || this.onchannel(wi.channels[i]) || this.mode&USERMODE_OPER)) { if (userchans) userchans += " "; if (Channels[wi.channels[i]].ismode(wi.id,CHANLIST_OP)) userchans += "@"; else if (Channels[wi.channels[i]].ismode(wi.id,CHANLIST_VOICE)) userchans += "+"; userchans += Channels[wi.channels[i]].nam; } } if (userchans) this.numeric(319, wi.nick + " :" + userchans); if (wi.local) this.numeric(312, wi.nick + " " + servername + " :" + serverdesc); else { wi_server = searchbyserver(wi.servername); this.numeric(312, wi.nick + " " + wi_server.nick + " :" + wi_server.realname); } if (wi.mode&USERMODE_OPER) this.numeric(313, wi.nick + " :is an IRC operator."); if (wi.away) this.numeric(301, wi.nick + " :" + wi.away); if (wi.local) this.numeric(317, wi.nick + " " + (time() - wi.talkidle) + " " + wi.connecttime + " :seconds idle, signon time");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f2f97bbbb51c190c74d5d75a9f8d6aac710d97ad/ircd.js/buggy/ircd.js |
else if (Channels[wi.channels[i]].ismode(wi.id,CHANLIST_VOICE)) | else if (Channels[wi.channels[i]].ismode(wi.id,CHANMODE_VOICE)) | function IRCClient_do_whois(wi) { if (!wi) return 0; this.numeric(311, wi.nick + " " + wi.uprefix + " " + wi.hostname + " * :" + wi.realname); var userchans=""; for (i in wi.channels) { if(wi.channels[i] && (!(Channels[wi.channels[i]].mode&CHANMODE_SECRET || Channels[wi.channels[i]].mode&CHANMODE_PRIVATE) || this.onchannel(wi.channels[i]) || this.mode&USERMODE_OPER)) { if (userchans) userchans += " "; if (Channels[wi.channels[i]].ismode(wi.id,CHANLIST_OP)) userchans += "@"; else if (Channels[wi.channels[i]].ismode(wi.id,CHANLIST_VOICE)) userchans += "+"; userchans += Channels[wi.channels[i]].nam; } } if (userchans) this.numeric(319, wi.nick + " :" + userchans); if (wi.local) this.numeric(312, wi.nick + " " + servername + " :" + serverdesc); else { wi_server = searchbyserver(wi.servername); this.numeric(312, wi.nick + " " + wi_server.nick + " :" + wi_server.realname); } if (wi.mode&USERMODE_OPER) this.numeric(313, wi.nick + " :is an IRC operator."); if (wi.away) this.numeric(301, wi.nick + " :" + wi.away); if (wi.local) this.numeric(317, wi.nick + " " + (time() - wi.talkidle) + " " + wi.connecttime + " :seconds idle, signon time");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f2f97bbbb51c190c74d5d75a9f8d6aac710d97ad/ircd.js/buggy/ircd.js |
this.bcast_to_servers_raw(":" + servername + " SERVER " + this.nick + " 2 :" + this.info); | this.bcast_to_servers_raw(":" + servername + " SERVER " + this.nick + " 2 :" + this.info); | function IRCClient_finalize_server_connect(states,sendps) { hcc_counter++; gnotice("Link with " + this.nick + "[unknown@" + this.hostname + "] established, states: " + states); if (server.client_update != undefined) server.client_update(this.socket, this.nick, this.hostname); if (sendps) { for (cl in CLines) { if(wildmatch(this.nick,CLines[cl].servername)) { this.rawout("PASS " + CLines[cl].password + " :" + states); break; } } this.rawout("CAPAB " + server_capab); this.rawout("SERVER " + servername + " 1 :" + serverdesc); } this.bcast_to_servers_raw(":" + servername + " SERVER " + this.nick + " 2 :" + this.info); this.synchronize();} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
function IRCClient_finalize_server_connect(states) { | function IRCClient_finalize_server_connect(states,sendps) { | function IRCClient_finalize_server_connect(states) { hcc_counter++; gnotice("Link with " + this.nick + "[unknown@" + this.hostname + "] established, states: " + states); if (server.client_update != undefined) server.client_update(this.socket, this.nick, this.hostname); if (!this.sentps) { for (cl in CLines) { if(IRC_match(this.nick,CLines[cl].servername)) { this.rawout("PASS " + CLines[cl].password + " :" + states); break; } } this.rawout("CAPAB " + server_capab); this.rawout("SERVER " + servername + " 1 :" + serverdesc); } this.bcast_to_servers_raw(":" + servername + " SERVER " + this.nick + " 2 :" + this.info); this.synchronize();} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/3a24aaeab22e426a0fcb1f18b8c71f6f5f65bba1/ircd.js/clean/ircd.js |
if (!this.sentps) { | if (sendps) { | function IRCClient_finalize_server_connect(states) { hcc_counter++; gnotice("Link with " + this.nick + "[unknown@" + this.hostname + "] established, states: " + states); if (server.client_update != undefined) server.client_update(this.socket, this.nick, this.hostname); if (!this.sentps) { for (cl in CLines) { if(IRC_match(this.nick,CLines[cl].servername)) { this.rawout("PASS " + CLines[cl].password + " :" + states); break; } } this.rawout("CAPAB " + server_capab); this.rawout("SERVER " + servername + " 1 :" + serverdesc); } this.bcast_to_servers_raw(":" + servername + " SERVER " + this.nick + " 2 :" + this.info); this.synchronize();} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/3a24aaeab22e426a0fcb1f18b8c71f6f5f65bba1/ircd.js/clean/ircd.js |
for (cl in CLines) { if(IRC_match(this.nick,CLines[cl].servername)) { this.rawout("PASS " + CLines[cl].password + " :" + states); | for (cl in CLines) { if(IRC_match(this.nick,CLines[cl].servername)) { this.rawout("PASS " + CLines[cl].password + " :" + states); | function IRCClient_finalize_server_connect(states) { hcc_counter++; umode_notice(USERMODE_ROUTING,"Routing","Link with " + this.nick + "[unknown@" + this.hostname + "] established, states: " + states); if (server.client_update != undefined) server.client_update(this.socket, this.nick, this.hostname); if (!this.sentps) { for (cl in CLines) { if(IRC_match(this.nick,CLines[cl].servername)) { this.rawout("PASS " + CLines[cl].password + " :" + states); break; } } this.rawout("CAPAB " + server_capab); this.rawout("SERVER " + servername + " 1 :" + serverdesc); } this.bcast_to_servers_raw(":" + servername + " SERVER " + this.nick + " 2 :" + this.realname); this.synchronize();} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/5a506daace487e8748162375f96180d0add4326b/ircd.js/clean/ircd.js |
this.bcast_to_servers_raw(":" + servername + " SERVER " + this.nick + " 2 :" + this.realname); | this.bcast_to_servers_raw(":" + servername + " SERVER " + this.nick + " 2 :" + this.info); | function IRCClient_finalize_server_connect(states) { hcc_counter++; umode_notice(USERMODE_ROUTING,"Routing","Link with " + this.nick + "[unknown@" + this.hostname + "] established, states: " + states); if (server.client_update != undefined) server.client_update(this.socket, this.nick, this.hostname); if (!this.sentps) { for (cl in CLines) { if(IRC_match(this.nick,CLines[cl].servername)) { this.rawout("PASS " + CLines[cl].password + " :" + states); break; } } this.rawout("CAPAB " + server_capab); this.rawout("SERVER " + servername + " 1 :" + serverdesc); } this.bcast_to_servers_raw(":" + servername + " SERVER " + this.nick + " 2 :" + this.realname); this.synchronize();} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/5a506daace487e8748162375f96180d0add4326b/ircd.js/clean/ircd.js |
oper_notice("Routing","Link with " + this.nick + "[unknown@" + this.hostname + "] established, states: " + states); | umode_notice(USERMODE_ROUTING,"Routing","Link with " + this.nick + "[unknown@" + this.hostname + "] established, states: " + states); | function IRCClient_finalize_server_connect(states) { hcc_counter++; oper_notice("Routing","Link with " + this.nick + "[unknown@" + this.hostname + "] established, states: " + states); if (server.client_update != undefined) server.client_update(this.socket, this.nick, this.hostname); if (!this.sentps) { for (cl in CLines) { if(match_irc_mask(this.nick,CLines[cl].servername)) { this.rawout("PASS " + CLines[cl].password + " :" + states); break; } } this.rawout("CAPAB " + server_capab); this.rawout("SERVER " + servername + " 1 :" + serverdesc); } this.bcast_to_servers_raw(":" + servername + " SERVER " + this.nick + " 2 :" + this.realname); this.synchronize();} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4288a1a511dbe07b6c8a7901a012ddfdeb204568/ircd.js/buggy/ircd.js |
function IRCClient_get_usermode() { var tmp_mode = "+"; if (this.mode&USERMODE_INVISIBLE) tmp_mode += "i"; if (this.mode&USERMODE_OPER) tmp_mode += "o"; return tmp_mode;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/932a434bc900126d724150bfed8b94b9a8e530e1/ircd.js/buggy/ircd.js |
||
tmp_mode = "+"; | var tmp_mode = "+"; | function IRCClient_get_usermode() { tmp_mode = "+"; if (this.mode&USERMODE_INVISIBLE) tmp_mode += "i"; if (this.mode&USERMODE_OPER) tmp_mode += "o"; return tmp_mode;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/916eecaff32dd50d9b82305f9be06517866554ea/ircd.js/clean/ircd.js |
function IRCClient_get_usermode() { | function IRCClient_get_usermode(bcast_modes) { | function IRCClient_get_usermode() { var tmp_mode = "+"; if (this.mode&USERMODE_INVISIBLE) tmp_mode += "i"; if (this.mode&USERMODE_OPER) tmp_mode += "o"; return tmp_mode;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f2f97bbbb51c190c74d5d75a9f8d6aac710d97ad/ircd.js/buggy/ircd.js |
if (this.mode&USERMODE_INVISIBLE) tmp_mode += "i"; if (this.mode&USERMODE_OPER) tmp_mode += "o"; | for (ch in USERMODE_CHAR) { if ((!bcast_modes || (bcast_modes && USERMODE_BCAST[ch])) && this.mode&USERMODE_CHAR[ch]) tmp_mode += ch; } | function IRCClient_get_usermode() { var tmp_mode = "+"; if (this.mode&USERMODE_INVISIBLE) tmp_mode += "i"; if (this.mode&USERMODE_OPER) tmp_mode += "o"; return tmp_mode;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f2f97bbbb51c190c74d5d75a9f8d6aac710d97ad/ircd.js/buggy/ircd.js |
if(this.parent) | if(this.local) | function IRCClient_global(target,type_str,send_str) { if (!target.match("[.]")) { this.numeric(413,target + " :No top-level domain specified."); return 0; } var domain_part = target.split('.'); if (domain_part[domain_part.length - 1].match("[?*]")) { this.numeric(414,target + " :Wildcard found in top-level domain."); return 0; } var global_mask = target.slice(1); var global_str = type_str + " " + target + " :" + send_str; for(globClient in Local_Users) { var Client = Local_Users[globClient]; if (target[0] == "#") var global_match = Client.hostname; else // assume $ var global_match = Client.servername; if (IRC_match(global_match,global_mask)) Client.originatorout(global_str,this); } global_str = ":" + this.nick + " " + global_str; if(this.parent) Servers[this.parent.toLowerCase()].bcast_to_servers_raw(global_str); else if (this.flags&OLINE_CAN_GGNOTICE) server_bcast_to_servers(global_str); return 1;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/414498bc4eb815f9da50ec3203c12a3b087998b4/ircd.js/buggy/ircd.js |
if(this.local) | if(this.local && this.parent) /* Incoming from a local server */ | function IRCClient_global(target,type_str,send_str) { if (!target.match("[.]")) { this.numeric(413,target + " :No top-level domain specified."); return 0; } var domain_part = target.split('.'); if (domain_part[domain_part.length - 1].match("[?*]")) { this.numeric(414,target + " :Wildcard found in top-level domain."); return 0; } var global_mask = target.slice(1); var global_str = type_str + " " + target + " :" + send_str; for(globClient in Local_Users) { var Client = Local_Users[globClient]; if (target[0] == "#") var global_match = Client.hostname; else // assume $ var global_match = Client.servername; if (IRC_match(global_match,global_mask)) Client.originatorout(global_str,this); } global_str = ":" + this.nick + " " + global_str; if(this.local) Servers[this.parent.toLowerCase()].bcast_to_servers_raw(global_str); else if (this.flags&OLINE_CAN_GGNOTICE) server_bcast_to_servers(global_str); return 1;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/3696acf19dd48bcf0d3bbd1765591087d9a80235/ircd.js/buggy/ircd.js |
else if (this.flags&OLINE_CAN_GGNOTICE) | else if (this.flags&OLINE_CAN_GGNOTICE) /* From a local oper */ | function IRCClient_global(target,type_str,send_str) { if (!target.match("[.]")) { this.numeric(413,target + " :No top-level domain specified."); return 0; } var domain_part = target.split('.'); if (domain_part[domain_part.length - 1].match("[?*]")) { this.numeric(414,target + " :Wildcard found in top-level domain."); return 0; } var global_mask = target.slice(1); var global_str = type_str + " " + target + " :" + send_str; for(globClient in Local_Users) { var Client = Local_Users[globClient]; if (target[0] == "#") var global_match = Client.hostname; else // assume $ var global_match = Client.servername; if (IRC_match(global_match,global_mask)) Client.originatorout(global_str,this); } global_str = ":" + this.nick + " " + global_str; if(this.local) Servers[this.parent.toLowerCase()].bcast_to_servers_raw(global_str); else if (this.flags&OLINE_CAN_GGNOTICE) server_bcast_to_servers(global_str); return 1;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/3696acf19dd48bcf0d3bbd1765591087d9a80235/ircd.js/buggy/ircd.js |
Servers[this.parent].bcast_to_servers_raw(global_str); | Servers[this.parent.toLowerCase()].bcast_to_servers_raw(global_str); | function IRCClient_global(target,type_str,send_str) { if (!target.match("[.]")) { this.numeric(413,target + " :No top-level domain specified."); return 0; } var domain_part = target.split('.'); if (domain_part[domain_part.length - 1].match("[?*]")) { this.numeric(414,target + " :Wildcard found in top-level domain."); return 0; } var global_mask = target.slice(1); var global_str = type_str + " " + target + " :" + send_str; for(globClient in Local_Users) { var Client = Local_Users[globClient]; if (target[0] == "#") var global_match = Client.hostname; else // assume $ var global_match = Client.servername; if (IRC_match(global_match,global_mask)) Client.originatorout(global_str,this); } global_str = ":" + this.nick + " " + global_str; if(this.parent) Servers[this.parent].bcast_to_servers_raw(global_str); else if (this.flags&OLINE_CAN_GGNOTICE) server_bcast_to_servers(global_str); return 1;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/9b31fc080a4a6c10c64fce10214bfae574877b10/ircd.js/clean/ircd.js |
Servers[this.parent.toLowerCase()].bcast_to_servers_raw(":" + this.nick + " GLOBOPS :" + str); | Servers[this.parent.toLowerCase()].bcast_to_servers_raw(":" + this.nick + " GLOBOPS :" + str); | function IRCClient_globops(str) { var globops_bits = 0; globops_bits |= USERMODE_OPER; globops_bits |= USERMODE_GLOBOPS; umode_notice(globops_bits,"Global","from " + this.nick +": " + str); if (this.parent) Servers[this.parent.toLowerCase()].bcast_to_servers_raw(":" + this.nick + " GLOBOPS :" + str); else server_bcast_to_servers(":" + this.nick + " GLOBOPS :" + str);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
Servers[this.parent].bcast_to_servers_raw(":" + this.nick + | Servers[this.parent.toLowerCase()].bcast_to_servers_raw(":" + this.nick + | function IRCClient_globops(str) { var globops_bits = 0; globops_bits |= USERMODE_OPER; globops_bits |= USERMODE_GLOBOPS; umode_notice(globops_bits,"Global","from " + this.nick +": " + str); if (this.parent) Servers[this.parent].bcast_to_servers_raw(":" + this.nick + " GLOBOPS :" + str); else server_bcast_to_servers(":" + this.nick + " GLOBOPS :" + str);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/9b31fc080a4a6c10c64fce10214bfae574877b10/ircd.js/clean/ircd.js |
this.numeric(251, ":There are " + num_noninvis_users() + " users and " + num_invis_users() + " invisible on " + true_array_len(Servers) + " servers."); | this.numeric(251, ":There are " + num_noninvis_users() + " users and " + num_invis_users() + " invisible on " + true_array_len(Servers) + " servers."); | function IRCClient_lusers() { this.numeric(251, ":There are " + num_noninvis_users() + " users and " + num_invis_users() + " invisible on " + true_array_len(Servers) + " servers."); this.numeric(252, num_opers() + " :IRC operators online."); var unknown_connections = true_array_len(Unregistered); if (unknown_connections) this.numeric(253, unknown_connections + " :unknown connection(s)."); this.numeric(254, true_array_len(Channels) + " :channels formed."); this.numeric(255, ":I have " + true_array_len(Local_Users) + " clients and " + true_array_len(Local_Servers) + " servers."); this.numeric(250, ":Highest connection count: " + hcc_total + " (" + hcc_users + " clients.)"); this.server_notice(hcc_counter + " clients have connected since " + strftime("%a %b %e %H:%M:%S %Y %Z",server_uptime));} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(255, ":I have " + true_array_len(Local_Users) + " clients and " + true_array_len(Local_Servers) + " servers."); this.numeric(250, ":Highest connection count: " + hcc_total + " (" + hcc_users + " clients.)"); this.server_notice(hcc_counter + " clients have connected since " + strftime("%a %b %e %H:%M:%S %Y %Z",server_uptime)); | this.numeric(255, ":I have " + true_array_len(Local_Users) + " clients and " + true_array_len(Local_Servers) + " servers."); this.numeric(250, ":Highest connection count: " + hcc_total + " (" + hcc_users + " clients.)"); this.server_notice(hcc_counter + " clients have connected since " + strftime("%a %b %e %H:%M:%S %Y %Z",server_uptime)); | function IRCClient_lusers() { this.numeric(251, ":There are " + num_noninvis_users() + " users and " + num_invis_users() + " invisible on " + true_array_len(Servers) + " servers."); this.numeric(252, num_opers() + " :IRC operators online."); var unknown_connections = true_array_len(Unregistered); if (unknown_connections) this.numeric(253, unknown_connections + " :unknown connection(s)."); this.numeric(254, true_array_len(Channels) + " :channels formed."); this.numeric(255, ":I have " + true_array_len(Local_Users) + " clients and " + true_array_len(Local_Servers) + " servers."); this.numeric(250, ":Highest connection count: " + hcc_total + " (" + hcc_users + " clients.)"); this.server_notice(hcc_counter + " clients have connected since " + strftime("%a %b %e %H:%M:%S %Y %Z",server_uptime));} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric("253", "0 :unknown connection(s)."); | function IRCClient_lusers() { this.numeric("251", ":There are " + count_nicks() + " users and " + count_nicks(USERMODE_INVISIBLE) + " invisible on " + count_servers(true) + " servers."); this.numeric("252", count_nicks(USERMODE_OPER) + " :IRC operators online."); this.numeric("254", count_channels() + " :channels formed."); this.numeric("255", ":I have " + count_local_nicks() + " clients and " + count_servers(false) + " servers."); this.numeric("250", ":Highest connection count: " + hcc_total + " (" + hcc_users + " clients.)"); this.server_notice(hcc_counter + " clients have connected since " + strftime("%a %b %e %H:%M:%S %Y %Z",server_uptime));} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/648f341bbfcf39d714c3a0746ccef5a350ef8d6a/ircd.js/clean/ircd.js |
|
this.numeric("251", ":There are " + true_array_len(Users) + " users and 0 invisible on " + true_array_len(Servers) + " servers."); this.numeric("252", "0 :IRC operators online."); this.numeric("253", "0 :unknown connection(s)."); this.numeric("254", true_array_len(Channels) + " :channels formed."); this.numeric("255", ":I have " + true_array_len(Local_Users) + " clients and " + true_array_len(Local_Servers) + " servers."); this.numeric("250", ":Highest connection count: " + hcc_total + " (" + hcc_users + " clients.)"); | this.numeric(251, ":There are " + num_noninvis_users() + " users and " + num_invis_users() + " invisible on " + true_array_len(Servers) + " servers."); this.numeric(252, num_opers() + " :IRC operators online."); var unknown_connections = true_array_len(Unregistered); if (unknown_connections) this.numeric(253, unknown_connections + " :unknown connection(s)."); this.numeric(254, true_array_len(Channels) + " :channels formed."); this.numeric(255, ":I have " + true_array_len(Local_Users) + " clients and " + true_array_len(Local_Servers) + " servers."); this.numeric(250, ":Highest connection count: " + hcc_total + " (" + hcc_users + " clients.)"); | function IRCClient_lusers() { // FIXME: calc invis clients this.numeric("251", ":There are " + true_array_len(Users) + " users and 0 invisible on " + true_array_len(Servers) + " servers."); // FIXME: calc total opers this.numeric("252", "0 :IRC operators online."); this.numeric("253", "0 :unknown connection(s)."); this.numeric("254", true_array_len(Channels) + " :channels formed."); this.numeric("255", ":I have " + true_array_len(Local_Users) + " clients and " + true_array_len(Local_Servers) + " servers."); this.numeric("250", ":Highest connection count: " + hcc_total + " (" + hcc_users + " clients.)"); this.server_notice(hcc_counter + " clients have connected since " + strftime("%a %b %e %H:%M:%S %Y %Z",server_uptime));} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/b261c9ecf265d40e141366a90fb1cf49a2b3ddc6/ircd.js/clean/ircd.js |
if ( wildmatch(this.nick,mask.split("!")[0]) && wildmatch(this.uprefix,mask.slice(mask.indexOf("!")+1).split("@")[0]) && wildmatch(this.hostname,mask.slice(mask.indexOf("@")+1)) ) | if ( wildmatch(this.nick,mask.split("!")[0]) && wildmatch(this.uprefix, mask.slice(mask.indexOf("!")+1).split("@")[0]) && wildmatch(this.hostname,mask.slice(mask.indexOf("@")+1)) ) | function IRCClient_match_who_mask(mask) { if ((mask[0] == "#") || (mask[0] == "&")) { // channel if (Channels[mask.toUpperCase()]) return 1; else return 0; // channel doesn't exist. } else if (mask.match(/[!]/)) { // nick!user@host if ( wildmatch(this.nick,mask.split("!")[0]) && wildmatch(this.uprefix,mask.slice(mask.indexOf("!")+1).split("@")[0]) && wildmatch(this.hostname,mask.slice(mask.indexOf("@")+1)) ) return 1; } else if (mask.match(/[@]/)) { // user@host if ( wildmatch(this.uprefix,mask.split("@")[0]) && wildmatch(this.hostname,mask.split("@")[1]) ) return 1; } else if (mask.match(/[.]/)) { // host only if ( wildmatch(this.hostname,mask) ) return 1; } else { // must be a nick? if ( wildmatch(this.nick,mask) ) return 1; } return 0;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
if (motd_file.exists==false) | if (motd_file.exists==false) { | function IRCClient_motd() { var motd_file = new File(system.text_dir + "ircmotd.txt"); if (motd_file.exists==false) this.numeric(422, ":MOTD file missing: " + motd_file.name); else if (motd_file.open("r")==false) this.numeric(424, ":MOTD error " + errno + " opening: " + motd_file.name); else { this.numeric(375, ":- " + servername + " Message of the Day -"); this.numeric(372, ":- " + strftime("%m/%d/%Y %H:%M",motd_file.date)); while (!motd_file.eof) { motd_line = motd_file.readln(); if (motd_line != null) this.numeric(372, ":- " + motd_line); } motd_file.close(); } this.numeric(376, ":End of /MOTD command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
else if (motd_file.open("r")==false) this.numeric(424, ":MOTD error " + errno + " opening: " + motd_file.name); else { | } else if (motd_file.open("r")==false) { this.numeric(424, ":MOTD error " + errno + " opening: " + motd_file.name); } else { | function IRCClient_motd() { var motd_file = new File(system.text_dir + "ircmotd.txt"); if (motd_file.exists==false) this.numeric(422, ":MOTD file missing: " + motd_file.name); else if (motd_file.open("r")==false) this.numeric(424, ":MOTD error " + errno + " opening: " + motd_file.name); else { this.numeric(375, ":- " + servername + " Message of the Day -"); this.numeric(372, ":- " + strftime("%m/%d/%Y %H:%M",motd_file.date)); while (!motd_file.eof) { motd_line = motd_file.readln(); if (motd_line != null) this.numeric(372, ":- " + motd_line); } motd_file.close(); } this.numeric(376, ":End of /MOTD command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
motd_file = new File(system.text_dir + "/ircmotd.txt"); | motd_file = new File(system.text_dir + "ircmotd.txt"); | function IRCClient_motd() { motd_file = new File(system.text_dir + "/ircmotd.txt"); if (motd_file.open("r")) { this.numeric(375, ":- " + servername + " Message of the Day -"); this.numeric(372, ":- " + strftime("%m/%d/%Y %H:%M",motd_file.date)); while (!motd_file.eof) { motd_line = motd_file.readln(); if (motd_line != null) this.numeric(372, ":- " + motd_line); } } else { this.numeric(422, ":MOTD file is missing."); } this.numeric(376, ":End of /MOTD command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/a8d6cb0d2c42aa8c23da559752d1d706d38ce217/ircd.js/buggy/ircd.js |
umode_notice(USERMODE_SPY,"Spy","MOTD requested by " + this.nick + " (" + this.uprefix + "@" + this.hostname + ") [" + this.servername + "]"); | function IRCClient_motd() { umode_notice(USERMODE_SPY,"Spy","MOTD requested by " + this.nick + " (" + this.uprefix + "@" + this.hostname + ") [" + this.servername + "]"); var motd_file = new File(system.text_dir + "ircmotd.txt"); if (motd_file.exists==false) this.numeric(422, ":MOTD file missing: " + motd_file.name); else if (motd_file.open("r")==false) this.numeric(424, ":MOTD error " + errno + " opening: " + motd_file.name); else { this.numeric(375, ":- " + servername + " Message of the Day -"); this.numeric(372, ":- " + strftime("%m/%d/%Y %H:%M",motd_file.date)); while (!motd_file.eof) { motd_line = motd_file.readln(); if (motd_line != null) this.numeric(372, ":- " + motd_line); } motd_file.close(); } this.numeric(376, ":End of /MOTD command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/3e37819d4b7dbdc656af3e7f829a8e9ecb968d42/ircd.js/clean/ircd.js |
|
this.numeric(422, ":MOTD error " + errno + " opening: " + motd_file.name); | this.numeric(424, ":MOTD error " + errno + " opening: " + motd_file.name); | function IRCClient_motd() { motd_file = new File(system.text_dir + "ircmotd.txt"); if (motd_file.exists==false) this.numeric(422, ":MOTD file missing: " + motd_file.name); else if (motd_file.open("r")==false) this.numeric(422, ":MOTD error " + errno + " opening: " + motd_file.name); else { this.numeric(375, ":- " + servername + " Message of the Day -"); this.numeric(372, ":- " + strftime("%m/%d/%Y %H:%M",motd_file.date)); while (!motd_file.eof) { motd_line = motd_file.readln(); if (motd_line != null) this.numeric(372, ":- " + motd_line); } motd_file.close(); } this.numeric(376, ":End of /MOTD command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/17d1ea31769b5a1523d2fea5c1c1b83233859d14/ircd.js/clean/ircd.js |
motd_file = new File(system.text_dir + "ircmotd.txt"); | umode_notice(USERMODE_SPY,"Spy","MOTD requested by " + this.nick + " (" + this.uprefix + "@" + this.hostname + ") [" + this.servername + "]"); var motd_file = new File(system.text_dir + "ircmotd.txt"); | function IRCClient_motd() { motd_file = new File(system.text_dir + "ircmotd.txt"); if (motd_file.exists==false) this.numeric(422, ":MOTD file missing: " + motd_file.name); else if (motd_file.open("r")==false) this.numeric(424, ":MOTD error " + errno + " opening: " + motd_file.name); else { this.numeric(375, ":- " + servername + " Message of the Day -"); this.numeric(372, ":- " + strftime("%m/%d/%Y %H:%M",motd_file.date)); while (!motd_file.eof) { motd_line = motd_file.readln(); if (motd_line != null) this.numeric(372, ":- " + motd_line); } motd_file.close(); } this.numeric(376, ":End of /MOTD command.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4288a1a511dbe07b6c8a7901a012ddfdeb204568/ircd.js/buggy/ircd.js |
if (Channels[chan].ismode(Channel_user.id,CHANLIST_OP)) | if (Channels[chan].ismode(Channel_user.id,CHANMODE_OP)) | function IRCClient_names(chan) { var Channel_user; var numnicks=0; var tmp=""; for(thisChannel_user in Channels[chan].users) { Channel_user=Clients[Channels[chan].users[thisChannel_user]]; if (Channel_user.nick && (Channel_user.conntype != TYPE_SERVER) && ( !(Channel_user.mode&USERMODE_INVISIBLE) || (this.onchannel(chan)) ) ) { if (numnicks) tmp += " "; if (Channels[chan].ismode(Channel_user.id,CHANLIST_OP)) tmp += "@"; else if (Channels[chan].ismode(Channel_user.id,CHANLIST_VOICE)) tmp += "+"; tmp += Channel_user.nick; numnicks++; if (numnicks >= 59) { // dump what we've got, it's too much. this.numeric353(chan, tmp); numnicks=0; tmp=""; } } } if(numnicks) this.numeric353(chan, tmp);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f2f97bbbb51c190c74d5d75a9f8d6aac710d97ad/ircd.js/buggy/ircd.js |
else if (Channels[chan].ismode(Channel_user.id,CHANLIST_VOICE)) | else if (Channels[chan].ismode(Channel_user.id,CHANMODE_VOICE)) | function IRCClient_names(chan) { var Channel_user; var numnicks=0; var tmp=""; for(thisChannel_user in Channels[chan].users) { Channel_user=Clients[Channels[chan].users[thisChannel_user]]; if (Channel_user.nick && (Channel_user.conntype != TYPE_SERVER) && ( !(Channel_user.mode&USERMODE_INVISIBLE) || (this.onchannel(chan)) ) ) { if (numnicks) tmp += " "; if (Channels[chan].ismode(Channel_user.id,CHANLIST_OP)) tmp += "@"; else if (Channels[chan].ismode(Channel_user.id,CHANLIST_VOICE)) tmp += "+"; tmp += Channel_user.nick; numnicks++; if (numnicks >= 59) { // dump what we've got, it's too much. this.numeric353(chan, tmp); numnicks=0; tmp=""; } } } if(numnicks) this.numeric353(chan, tmp);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f2f97bbbb51c190c74d5d75a9f8d6aac710d97ad/ircd.js/buggy/ircd.js |
numnicks=0; tmp=""; | var Channel_user; var numnicks=0; var tmp=""; | function IRCClient_names(chan) { numnicks=0; tmp=""; for(thisChannel_user in Channels[chan].users) { Channel_user=Clients[Channels[chan].users[thisChannel_user]]; if (Channel_user.nick && (Channel_user.conntype != TYPE_SERVER) && ( !(Channel_user.mode&USERMODE_INVISIBLE) || (this.onchannel(chan)) ) ) { if (numnicks) tmp += " "; if (Channels[chan].ismode(Channel_user.id,CHANLIST_OP)) tmp += "@"; else if (Channels[chan].ismode(Channel_user.id,CHANLIST_VOICE)) tmp += "+"; tmp += Channel_user.nick; numnicks++; if (numnicks >= 59) { // dump what we've got, it's too much. this.numeric353(chan, tmp); numnicks=0; tmp=""; } } } if(numnicks) this.numeric353(chan, tmp);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/8873ee606eff83dfffb34fbfda973ddb55c1e1ba/ircd.js/clean/ircd.js |
if (Users[sqclient].servername == this.nick) | if (Users[sqclient] && (Users[sqclient].servername == this.nick) ) | function IRCClient_netsplit(ns_reason) { if (!ns_reason) ns_reason = "net.split.net.split net.split.net.split"; for (sqclient in Users) { if (Users[sqclient].servername == this.nick) Users[sqclient].quit(ns_reason,true,true); }} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/906f77be442b63d7184d7076d5f4ce67c3aae953/ircd.js/buggy/ircd.js |
for (sqserver in Servers) { if (Servers[sqserver] && (Servers[sqserver].linkparent == this.nick) ) Servers[sqserver].quit(ns_reason,true,true); } | function IRCClient_netsplit(ns_reason) { if (!ns_reason) ns_reason = "net.split.net.split net.split.net.split"; for (sqclient in Users) { if (Users[sqclient].servername == this.nick) Users[sqclient].quit(ns_reason,true,true); }} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/906f77be442b63d7184d7076d5f4ce67c3aae953/ircd.js/buggy/ircd.js |
|
Clients[sqclient].quit(ns_reason,false); | Clients[sqclient].quit(ns_reason,true,true); | function IRCClient_netsplit(ns_reason) { if (!ns_reason) ns_reason = "net.split.net.split net.split.net.split"; for (sqclient in Clients) { if (Clients[sqclient] && (Clients[sqclient] != null) && (Clients[sqclient] != undefined)) { if ((Clients[sqclient].servername == this.nick) || (Clients[sqclient].linkparent == this.nick)) Clients[sqclient].quit(ns_reason,false); } }} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/3a0a82db2f096ce1ac1bb5a9c7319a6849b0e22a/ircd.js/buggy/ircd.js |
uchan_counter=0; | var uchan_counter=0; | function IRCClient_num_channels_on() { uchan_counter=0; for(tmp_uchan in this.channels) { if (this.channels[tmp_uchan]) uchan_counter++; } return uchan_counter;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/8873ee606eff83dfffb34fbfda973ddb55c1e1ba/ircd.js/clean/ircd.js |
this.numeric(206, "Serv " + ircclass + " " + sint + "S " + cint + "C *!*@" + server); | this.numeric(206, "Serv " + ircclass + " " + sint + "S " + cint + "C *!*@" + server); | function IRCClient_numeric206(ircclass,sint,cint,server) { this.numeric(206, "Serv " + ircclass + " " + sint + "S " + cint + "C *!*@" + server);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(322, channel_name + " " + true_array_len(chan.users) + " :" + disp_topic); | this.numeric(322, channel_name + " " + true_array_len(chan.users) + " :" + disp_topic); | function IRCClient_numeric322(chan,show_modes) { var channel_name; var disp_topic = ""; var is_onchan = this.channels[chan.nam.toUpperCase()]; if (show_modes) { var chanm = chan.chanmode() disp_topic += "[" + chanm.slice(0,chanm.length-1) + "]" } if ((chan.mode&CHANMODE_PRIVATE) && !(this.mode&USERMODE_OPER) && !is_onchan ) { channel_name = "*"; } else { channel_name = chan.nam; if (disp_topic) disp_topic += " "; disp_topic += chan.topic; } if (!(chan.mode&CHANMODE_SECRET) || (this.mode&USERMODE_OPER) || is_onchan ) this.numeric(322, channel_name + " " + true_array_len(chan.users) + " :" + disp_topic);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
function IRCClient_numeric322(chan) { | function IRCClient_numeric322(chan,show_modes) { | function IRCClient_numeric322(chan) { var channel_name; if ((chan.mode&CHANMODE_PRIVATE) && !(this.mode&USERMODE_OPER) && !this.onchannel(chan.nam.toUpperCase) ) channel_name = "Priv"; else channel_name = chan.nam; if (!(chan.mode&CHANMODE_SECRET) || (this.mode&USERMODE_OPER) || this.onchannel(chan.nam.toUpperCase()) ) this.numeric(322, channel_name + " " + chan.count_users() + " :" + chan.topic);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/eb0bdd5a634f6c8dd2a311bfb842586e6cea8219/ircd.js/buggy/ircd.js |
!this.onchannel(chan.nam.toUpperCase) ) | !this.onchannel(chan.nam.toUpperCase) ) { | function IRCClient_numeric322(chan) { var channel_name; if ((chan.mode&CHANMODE_PRIVATE) && !(this.mode&USERMODE_OPER) && !this.onchannel(chan.nam.toUpperCase) ) channel_name = "Priv"; else channel_name = chan.nam; if (!(chan.mode&CHANMODE_SECRET) || (this.mode&USERMODE_OPER) || this.onchannel(chan.nam.toUpperCase()) ) this.numeric(322, channel_name + " " + chan.count_users() + " :" + chan.topic);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/eb0bdd5a634f6c8dd2a311bfb842586e6cea8219/ircd.js/buggy/ircd.js |
else | } else { | function IRCClient_numeric322(chan) { var channel_name; if ((chan.mode&CHANMODE_PRIVATE) && !(this.mode&USERMODE_OPER) && !this.onchannel(chan.nam.toUpperCase) ) channel_name = "Priv"; else channel_name = chan.nam; if (!(chan.mode&CHANMODE_SECRET) || (this.mode&USERMODE_OPER) || this.onchannel(chan.nam.toUpperCase()) ) this.numeric(322, channel_name + " " + chan.count_users() + " :" + chan.topic);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/eb0bdd5a634f6c8dd2a311bfb842586e6cea8219/ircd.js/buggy/ircd.js |
if (disp_topic) disp_topic += " "; disp_topic += chan.topic; } | function IRCClient_numeric322(chan) { var channel_name; if ((chan.mode&CHANMODE_PRIVATE) && !(this.mode&USERMODE_OPER) && !this.onchannel(chan.nam.toUpperCase) ) channel_name = "Priv"; else channel_name = chan.nam; if (!(chan.mode&CHANMODE_SECRET) || (this.mode&USERMODE_OPER) || this.onchannel(chan.nam.toUpperCase()) ) this.numeric(322, channel_name + " " + chan.count_users() + " :" + chan.topic);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/eb0bdd5a634f6c8dd2a311bfb842586e6cea8219/ircd.js/buggy/ircd.js |
|
this.numeric(322, channel_name + " " + chan.count_users() + " :" + chan.topic); | this.numeric(322, channel_name + " " + chan.count_users() + " :" + disp_topic); | function IRCClient_numeric322(chan) { var channel_name; if ((chan.mode&CHANMODE_PRIVATE) && !(this.mode&USERMODE_OPER) && !this.onchannel(chan.nam.toUpperCase) ) channel_name = "Priv"; else channel_name = chan.nam; if (!(chan.mode&CHANMODE_SECRET) || (this.mode&USERMODE_OPER) || this.onchannel(chan.nam.toUpperCase()) ) this.numeric(322, channel_name + " " + chan.count_users() + " :" + chan.topic);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/eb0bdd5a634f6c8dd2a311bfb842586e6cea8219/ircd.js/buggy/ircd.js |
!this.onchannel(chan.nam.toUpperCase) ) { | !this.onchannel(chan.nam.toUpperCase()) ) { | function IRCClient_numeric322(chan,show_modes) { var channel_name; var disp_topic = ""; if (show_modes) { var chanm = chan.chanmode() disp_topic += "[" + chanm.slice(0,chanm.length-1) + "]" } if ((chan.mode&CHANMODE_PRIVATE) && !(this.mode&USERMODE_OPER) && !this.onchannel(chan.nam.toUpperCase) ) { channel_name = "Priv"; } else { channel_name = chan.nam; if (disp_topic) disp_topic += " "; disp_topic += chan.topic; } if (!(chan.mode&CHANMODE_SECRET) || (this.mode&USERMODE_OPER) || this.onchannel(chan.nam.toUpperCase()) ) this.numeric(322, channel_name + " " + chan.count_users() + " :" + disp_topic);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4288a1a511dbe07b6c8a7901a012ddfdeb204568/ircd.js/buggy/ircd.js |
this.numeric(333, chan.nam + " " + chan.topicchangedby + " " + chan.topictime); | this.numeric(333, chan.nam + " " + chan.topicchangedby + " " + chan.topictime); | function IRCClient_numeric333(chan) { this.numeric(333, chan.nam + " " + chan.topicchangedby + " " + chan.topictime);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric(351, version + " " + servername + " :Synchronet IRC Daemon by Randy Sommerfeld <[email protected]>"); | this.numeric(351, VERSION + " " + servername + " :(REV:" + REVISION + ") " + VERSION_STR); | function IRCClient_numeric351() { this.numeric(351, version + " " + servername + " :Synchronet IRC Daemon by Randy Sommerfeld <[email protected]>");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/a8d6cb0d2c42aa8c23da559752d1d706d38ce217/ircd.js/buggy/ircd.js |
this.numeric(351, VERSION + " " + servername + " :(REV:" + REVISION + ") " + VERSION_STR); | this.numeric(351, VERSION + " " + servername + " :" + VERSION_STR); | function IRCClient_numeric351() { this.numeric(351, VERSION + " " + servername + " :(REV:" + REVISION + ") " + VERSION_STR);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/9391ec6e3acaecf7a3a4e48b48d6dfa93b1b8c93/ircd.js/clean/ircd.js |
this.numeric(352, disp + " " + user.uprefix + " " + disphost + " " + user.servername + " " + user.nick + " " + who_mode + " :" + user.hops + " " + user.realname); | this.numeric(352, disp + " " + user.uprefix + " " + disphost + " " + user.servername + " " + user.nick + " " + who_mode + " :" + user.hops + " " + user.realname); | function IRCClient_numeric352(user,show_ips_only,chan) { var who_mode=""; var disp; var disphost; if (!user) return 0; if (!chan) disp = "*"; else disp = chan.nam; if (user.away) who_mode += "G"; else who_mode += "H"; if (chan) { if (chan.modelist[CHANMODE_OP][user.id]) who_mode += "@"; else if (chan.modelist[CHANMODE_VOICE][user.id]) who_mode += "+"; } if (user.mode&USERMODE_OPER) who_mode += "*"; if (show_ips_only) disphost = user.ip; else disphost = user.hostname; this.numeric(352, disp + " " + user.uprefix + " " + disphost + " " + user.servername + " " + user.nick + " " + who_mode + " :" + user.hops + " " + user.realname); return 1;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
if (chan.ismode(user.id,CHANLIST_OP)) | if (chan.ismode(user.id,CHANMODE_OP)) | function IRCClient_numeric352(user,show_ips_only,chan) { var who_mode=""; var disp; var disphost; if (!chan) disp = "*"; else disp = chan.nam; if (user.away) who_mode += "G"; else who_mode += "H"; if (chan) { if (chan.ismode(user.id,CHANLIST_OP)) who_mode += "@"; else if (chan.ismode(user.id,CHANLIST_VOICE)) who_mode += "+"; } if (user.mode&USERMODE_OPER) who_mode += "*"; if (show_ips_only) disphost = user.ip; else disphost = user.hostname; this.numeric(352, disp + " " + user.uprefix + " " + disphost + " " + user.servername + " " + user.nick + " " + who_mode + " :" + user.hops + " " + user.realname);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f2f97bbbb51c190c74d5d75a9f8d6aac710d97ad/ircd.js/buggy/ircd.js |
else if (chan.ismode(user.id,CHANLIST_VOICE)) | else if (chan.ismode(user.id,CHANMODE_VOICE)) | function IRCClient_numeric352(user,show_ips_only,chan) { var who_mode=""; var disp; var disphost; if (!chan) disp = "*"; else disp = chan.nam; if (user.away) who_mode += "G"; else who_mode += "H"; if (chan) { if (chan.ismode(user.id,CHANLIST_OP)) who_mode += "@"; else if (chan.ismode(user.id,CHANLIST_VOICE)) who_mode += "+"; } if (user.mode&USERMODE_OPER) who_mode += "*"; if (show_ips_only) disphost = user.ip; else disphost = user.hostname; this.numeric(352, disp + " " + user.uprefix + " " + disphost + " " + user.servername + " " + user.nick + " " + who_mode + " :" + user.hops + " " + user.realname);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f2f97bbbb51c190c74d5d75a9f8d6aac710d97ad/ircd.js/buggy/ircd.js |
if (!user) return 0; | function IRCClient_numeric352(user,show_ips_only,chan) { var who_mode=""; var disp; var disphost; if (!chan) disp = "*"; else disp = chan.nam; if (user.away) who_mode += "G"; else who_mode += "H"; if (chan) { if (chan.ismode(user.id,CHANMODE_OP)) who_mode += "@"; else if (chan.ismode(user.id,CHANMODE_VOICE)) who_mode += "+"; } if (user.mode&USERMODE_OPER) who_mode += "*"; if (show_ips_only) disphost = user.ip; else disphost = user.hostname; this.numeric(352, disp + " " + user.uprefix + " " + disphost + " " + user.servername + " " + user.nick + " " + who_mode + " :" + user.hops + " " + user.realname);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/dc8ba7bab5e084f4de6e896dd1556f6ccb4c581b/ircd.js/buggy/ircd.js |
|
ctype_str = "@"; | var ctype_str = "@"; | function IRCClient_numeric353(chan, str) { // = public @ secret * everything else if (Channels[chan].mode&CHANMODE_SECRET) ctype_str = "@"; else ctype_str = "="; this.numeric("353", ctype_str + " " + Channels[chan].nam + " :" + str);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/fded592664b20fd6b70f5931014b765c66e34702/ircd.js/clean/ircd.js |
ctype_str = "="; | var ctype_str = "="; | function IRCClient_numeric353(chan, str) { // = public @ secret * everything else if (Channels[chan].mode&CHANMODE_SECRET) ctype_str = "@"; else ctype_str = "="; this.numeric("353", ctype_str + " " + Channels[chan].nam + " :" + str);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/fded592664b20fd6b70f5931014b765c66e34702/ircd.js/clean/ircd.js |
this.numeric(391, servername + " :" + strftime("%A %B %d %Y -- %H:%M %z",time())); | this.numeric(391, servername + " :" + strftime("%A %B %d %Y -- %H:%M %z",time())); | function IRCClient_numeric391() { this.numeric(391, servername + " :" + strftime("%A %B %d %Y -- %H:%M %z",time()));} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric("403", str + " :No such channel or invalid channel designation."); | this.numeric("403", str + " :No such channel or invalid channel designation."); | function IRCClient_numeric403(str) { this.numeric("403", str + " :No such channel or invalid channel designation.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric("481", ":Permission Denied. You do not have the correct IRC operator privileges."); | this.numeric("481", ":Permission Denied. " + "You do not have the correct IRC operator privileges."); | function IRCClient_numeric481() { this.numeric("481", ":Permission Denied. You do not have the correct IRC operator privileges.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js |
this.numeric("481", ":Permission Denied. You're not an IRC operator."); | this.numeric("481", ":Permission Denied. You do not have the correct IRC operator privileges."); | function IRCClient_numeric481() { this.numeric("481", ":Permission Denied. You're not an IRC operator.");} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/676b0e584f59b15abf9a76f2142d9d94a1b1bfc5/ircd.js/clean/ircd.js |
var partingChannel; | function IRCClient_part_all() { for(thisChannel in this.channels) { partingChannel=this.channels[thisChannel]; this.do_part(Channels[partingChannel].nam); }} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/932a434bc900126d724150bfed8b94b9a8e530e1/ircd.js/buggy/ircd.js |
|
this.do_part(Channels[partingChannel].nam); | this.do_part(partingChannel.nam); | function IRCClient_part_all() { var partingChannel; for(thisChannel in this.channels) { partingChannel=this.channels[thisChannel]; this.do_part(Channels[partingChannel].nam); }} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/1cebcfca3a6240f246861645e271d6418b89f0b2/ircd_channel.js/buggy/load/ircd_channel.js |
server_wallops("Client Exiting: " + this.ircnuh + " (" + str + ")"); | oper_notice("Notice","Client exiting: " + this.nick + " (" + this.uprefix + "@" + this.hostname + ") [" + str + "] [" + this.decip + "]"); | function IRCClient_Quit(str,do_bcast) { if (!str) str = this.nick; if (!this.server) { tmp = "QUIT :" + str; this.bcast_to_uchans_unique(tmp); for(thisChannel in this.channels) { this.rmchan(Channels[this.channels[thisChannel]]); } if (whowas_pointer >= whowas_buffer) whowas_pointer = 0; if (!this.parent) ww_serverdesc = serverdesc; else ww_serverdesc = Clients[this.parent].realname; WhoWasHistory[whowas_pointer] = new WhoWas(this.nick,this.uprefix,this.hostname,this.realname,this.servername,ww_serverdesc); whowas_pointer++; if (do_bcast && (this.conntype > TYPE_UNREGISTERED) ) this.bcast_to_servers(tmp); } else if (this.server) { this.netsplit(servername + " " + this.nick); this.bcast_to_servers_raw("SQUIT " + this.nick + " :" + str); } if((server.client_remove!=undefined) && (this.conntype > TYPE_UNREGISTERED)) server.client_remove(this.socket); if (this.local) { this.rawout("ERROR :Closing Link: [" + this.uprefix + "@" + this.hostname + "] (" + str + ")"); server_wallops("Client Exiting: " + this.ircnuh + " (" + str + ")"); this.socket.close(); } this.conntype=TYPE_EMPTY; delete this.nick; delete this.socket; delete Clients[this.id]; delete this;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/a8d6cb0d2c42aa8c23da559752d1d706d38ce217/ircd.js/buggy/ircd.js |
function IRCClient_Quit(str,do_bcast) { | function IRCClient_Quit(str,suppress_bcast,is_netsplit,origin) { var tmp; | function IRCClient_Quit(str,do_bcast) { if (!str) str = this.nick; if (!this.server) { tmp = "QUIT :" + str; this.bcast_to_uchans_unique(tmp); for(thisChannel in this.channels) { this.rmchan(Channels[this.channels[thisChannel]]); } if (whowas_pointer >= whowas_buffer) whowas_pointer = 0; if (!this.parent) ww_serverdesc = serverdesc; else ww_serverdesc = Clients[this.parent].realname; WhoWasHistory[whowas_pointer] = new WhoWas(this.nick,this.uprefix,this.hostname,this.realname,this.servername,ww_serverdesc); whowas_pointer++; if (do_bcast && (this.conntype > TYPE_UNREGISTERED) ) this.bcast_to_servers(tmp); } else if (this.server) { if (this.local) this.netsplit(servername + " " + this.nick); else this.netsplit(str); } if((server.client_remove!=undefined) && !this.sentps) server.client_remove(this.socket); if (this.local) { this.rawout("ERROR :Closing Link: [" + this.uprefix + "@" + this.hostname + "] (" + str + ")"); oper_notice("Notice","Client exiting: " + this.nick + " (" + this.uprefix + "@" + this.hostname + ") [" + str + "] [" + this.ip + "]"); this.socket.close(); } this.conntype=TYPE_EMPTY; delete this.nick; delete this.socket; delete Clients[this.id];} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/3a0a82db2f096ce1ac1bb5a9c7319a6849b0e22a/ircd.js/buggy/ircd.js |
if (do_bcast && (this.conntype > TYPE_UNREGISTERED) ) | if (!suppress_bcast && (this.conntype > TYPE_UNREGISTERED) ) | function IRCClient_Quit(str,do_bcast) { if (!str) str = this.nick; if (!this.server) { tmp = "QUIT :" + str; this.bcast_to_uchans_unique(tmp); for(thisChannel in this.channels) { this.rmchan(Channels[this.channels[thisChannel]]); } if (whowas_pointer >= whowas_buffer) whowas_pointer = 0; if (!this.parent) ww_serverdesc = serverdesc; else ww_serverdesc = Clients[this.parent].realname; WhoWasHistory[whowas_pointer] = new WhoWas(this.nick,this.uprefix,this.hostname,this.realname,this.servername,ww_serverdesc); whowas_pointer++; if (do_bcast && (this.conntype > TYPE_UNREGISTERED) ) this.bcast_to_servers(tmp); } else if (this.server) { if (this.local) this.netsplit(servername + " " + this.nick); else this.netsplit(str); } if((server.client_remove!=undefined) && !this.sentps) server.client_remove(this.socket); if (this.local) { this.rawout("ERROR :Closing Link: [" + this.uprefix + "@" + this.hostname + "] (" + str + ")"); oper_notice("Notice","Client exiting: " + this.nick + " (" + this.uprefix + "@" + this.hostname + ") [" + str + "] [" + this.ip + "]"); this.socket.close(); } this.conntype=TYPE_EMPTY; delete this.nick; delete this.socket; delete Clients[this.id];} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/3a0a82db2f096ce1ac1bb5a9c7319a6849b0e22a/ircd.js/buggy/ircd.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.