Skip to content
Snippets Groups Projects
Commit cdd5f90c authored by deuce's avatar deuce
Browse files

Propagate outgoing/ircclass from unreg to server/user.

parent 6f5dc634
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,7 @@ function IRC_Server() { ...@@ -50,6 +50,7 @@ function IRC_Server() {
this.parent = 0; this.parent = 0;
this.info = ""; this.info = "";
this.idletime = time(); this.idletime = time();
this.outgoing = false;
// Variables (consts, really) that point to various state information // Variables (consts, really) that point to various state information
this.socket = ""; this.socket = "";
this.type = BAHAMUT; /* Assume bahamut by default */ this.type = BAHAMUT; /* Assume bahamut by default */
......
...@@ -225,6 +225,8 @@ function IRC_Unregistered_Commands(cmdline) { ...@@ -225,6 +225,8 @@ function IRC_Unregistered_Commands(cmdline) {
new_server.hostname = this.hostname; new_server.hostname = this.hostname;
new_server.recvq = this.recvq; new_server.recvq = this.recvq;
new_server.sendq = this.sendq; new_server.sendq = this.sendq;
new_server.ircclass = this.ircclass;
new_server.outgoing = this.outgoing;
if (!qwk_slave) { // qwk slaves should never be hubs. if (!qwk_slave) { // qwk slaves should never be hubs.
for (hl in HLines) { for (hl in HLines) {
if (HLines[hl].servername.toLowerCase() if (HLines[hl].servername.toLowerCase()
...@@ -393,6 +395,8 @@ function Unregistered_Welcome() { ...@@ -393,6 +395,8 @@ function Unregistered_Welcome() {
new_user.ircclass = my_iline.ircclass; new_user.ircclass = my_iline.ircclass;
new_user.sendq = this.sendq; new_user.sendq = this.sendq;
new_user.recvq = this.recvq; new_user.recvq = this.recvq;
// Shouldn't be a thing...
new_user.outgoing = this.outgoing;
hcc_counter++; hcc_counter++;
this.numeric("001", ":Welcome to the Synchronet IRC Service, " + new_user.nuh); this.numeric("001", ":Welcome to the Synchronet IRC Service, " + new_user.nuh);
this.numeric("002", ":Your host is " + servername + ", running version " + VERSION); this.numeric("002", ":Your host is " + servername + ", running version " + VERSION);
......
...@@ -148,6 +148,7 @@ function IRC_User(id) { ...@@ -148,6 +148,7 @@ function IRC_User(id) {
this.uprefix = ""; this.uprefix = "";
this.id = id; this.id = id;
this.throttle_count = 0; /* Number of commands executed within 2 secs */ this.throttle_count = 0; /* Number of commands executed within 2 secs */
this.outgoing = false;
// Variables (consts, really) that point to various state information // Variables (consts, really) that point to various state information
this.socket = ""; this.socket = "";
////////// FUNCTIONS ////////// FUNCTIONS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment