Skip to content
Snippets Groups Projects
Commit 78be7448 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

bugfix

Rev: lib/modules/Protocols.pmod/X.pmod/Auth.pmod:1.7
parent c98dc040
No related branches found
No related tags found
No related merge requests found
/* Auth.pmod /* Auth.pmod
* *
* $Id: Auth.pmod,v 1.6 1999/12/11 19:44:02 grubba Exp $ * $Id: Auth.pmod,v 1.7 2000/02/26 01:07:31 hubbe Exp $
*/ */
/* /*
...@@ -58,9 +58,9 @@ class auth_file ...@@ -58,9 +58,9 @@ class auth_file
} }
} }
void lookup_local(string name, int display) mapping lookup_local(string name, int display)
{ {
auth[256] && auth[256][make_key(name, display)]; return auth[256] && auth[256][make_key(name, display)];
} }
string ip2string(string ip) string ip2string(string ip)
...@@ -70,9 +70,9 @@ class auth_file ...@@ -70,9 +70,9 @@ class auth_file
{ return (int) s; })); { return (int) s; }));
} }
void lookup_ip(string ip, int display) mapping lookup_ip(string ip, int display)
{ {
auth[0] && auth[0][make_key(ip2string(ip), display)]; return auth[0] && auth[0][make_key(ip2string(ip), display)];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment