Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
e96b79d8
Commit
e96b79d8
authored
21 years ago
by
cyan
Browse files
Options
Downloads
Patches
Plain Diff
Fix for 'invalid origin' bug on the QWK master, involving not checking for
existing servers before allowing dynamic QWK connects.
parent
6cc71a6f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
exec/ircd.js
+35
-8
35 additions, 8 deletions
exec/ircd.js
exec/load/ircd_server.js
+0
-1
0 additions, 1 deletion
exec/load/ircd_server.js
exec/load/ircd_unreg.js
+4
-4
4 additions, 4 deletions
exec/load/ircd_unreg.js
with
39 additions
and
13 deletions
exec/ircd.js
+
35
−
8
View file @
e96b79d8
...
...
@@ -1144,17 +1144,44 @@ function IRCClient_numeric482(tmp_chan_nam) {
//////////////////// Multi-numeric Display Functions ////////////////////
function
IRCClient_lusers
()
{
// FIXME: calc invis clients
this
.
numeric
(
"
25
1
"
,
"
:There are
"
+
true_array_len
(
Us
ers
)
+
"
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
.
numeric
(
251
,
"
:There are
"
+
num_noninvis_users
()
+
"
users and
"
+
num_invis_users
()
+
"
invisible on
"
+
true_array_len
(
Servers
)
+
"
servers.
"
);
this
.
numeric
(
25
2
,
num_op
ers
(
)
+
"
: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
));
}
function
num_noninvis_users
()
{
var
counter
=
0
;
for
(
myuser
in
Users
)
{
if
(
!
Users
[
myuser
].
mode
&
USERMODE_INVISIBLE
)
counter
++
;
}
return
counter
;
}
function
num_invis_users
()
{
var
counter
=
0
;
for
(
myuser
in
Users
)
{
if
(
Users
[
myuser
].
mode
&
USERMODE_INVISIBLE
)
counter
++
;
}
return
counter
;
}
function
num_opers
()
{
var
counter
=
0
;
for
(
myuser
in
Users
)
{
if
(
Users
[
myuser
].
mode
&
USERMODE_OPER
)
counter
++
;
}
return
counter
;
}
function
IRCClient_motd
()
{
var
motd_file
=
new
File
(
system
.
text_dir
+
"
ircmotd.txt
"
);
if
(
motd_file
.
exists
==
false
)
...
...
This diff is collapsed.
Click to expand it.
exec/load/ircd_server.js
+
0
−
1
View file @
e96b79d8
...
...
@@ -72,7 +72,6 @@ function IRC_Server() {
this
.
synchronize
=
IRCClient_synchronize
;
this
.
reintroduce_nick
=
IRCClient_reintroduce_nick
;
this
.
finalize_server_connect
=
IRCClient_finalize_server_connect
;
this
.
do_msg
=
IRCClient_do_msg
;
// Global Functions
this
.
check_timeout
=
IRCClient_check_timeout
;
this
.
set_chanmode
=
IRCClient_set_chanmode
;
...
...
This diff is collapsed.
Click to expand it.
exec/load/ircd_unreg.js
+
4
−
4
View file @
e96b79d8
...
...
@@ -170,6 +170,10 @@ function Unregistered_Commands() {
this
.
numeric461
(
"
SERVER
"
);
break
;
}
if
(
Servers
[
cmd
[
1
].
toUpperCase
()])
{
this
.
quit
(
"
Server already exists.
"
);
return
0
;
}
var
this_nline
=
0
;
var
qwk_slave
=
false
;
var
qwkid
=
cmd
[
1
].
slice
(
0
,
cmd
[
1
].
indexOf
(
"
.
"
)).
toUpperCase
();
...
...
@@ -208,10 +212,6 @@ function Unregistered_Commands() {
this
.
quit
(
"
Server not configured.
"
);
return
0
;
}
if
(
Servers
[
cmd
[
1
].
toUpperCase
()])
{
this
.
quit
(
"
Server already exists.
"
);
return
0
;
}
// Take care of registration right now.
Servers
[
cmd
[
1
].
toLowerCase
()]
=
new
IRC_Server
;
var
new_server
=
Servers
[
cmd
[
1
].
toLowerCase
()];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment