Roxen.git/
server/
base_server/
module.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1997-09-27
1997-09-27 13:24:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>
eac26dbd0e74f9b6bdcd90afdaa698239075b12e (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed minor bug.
Rev: server/base_server/module.pike:1.24
1:
-
/* $Id: module.pike,v 1.
23
1997/
08
/
24
23
:
14
:
01
peter
Exp $ */
+
/* $Id: module.pike,v 1.
24
1997/
09
/
27
13
:
24
:
52
grubba
Exp $ */
#include <module.h>
342:
static private int ip_to_int(string ip) { int res;
-
foreach(ip/".", string num) {
+
foreach(
((
ip/"."
) + ({ "0"
,
"0", "0" }))[..3],
string num) {
res = res*256 + (int)num; } return(res);