From cd5548cab83bec7612905114ea46f330a9bf43da Mon Sep 17 00:00:00 2001 From: stskeeps Date: Sun, 3 Dec 2000 13:13:27 +0000 Subject: [PATCH] +- Fixed P:line bug, caused by codemastr(tm) coding, (masskills), reported by + sidv@sid-kitty-land.org --- Changes | 2 ++ src/s_serv.c | 3 ++- src/s_user.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 1d3c8a318..5e66e2749 100644 --- a/Changes +++ b/Changes @@ -235,3 +235,5 @@ - Fixed a chinese nick thing, thanks to miCro and RexHsu - Fixed a typo in config.h - Fixed a bug in sendto_channel_prefix_tok reported by Strider@ChatCircuit +- Fixed P:line bug, caused by codemastr(tm) coding, (masskills), reported by + sidv@sid-kitty-land.org diff --git a/src/s_serv.c b/src/s_serv.c index 4f86232ed..cf5ea7135 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -600,7 +600,8 @@ int m_server(cptr, sptr, parc, parv) sendto_one(cptr, "ERROR :No servername"); return 0; } - if ((cptr->acpt->umodes & LISTENER_CLIENTSONLY) && MyConnect(cptr)) { + if (MyConnect(sptr) && (sptr->acpt->umodes & LISTENER_CLIENTSONLY)) + { return exit_client(cptr, sptr, sptr, "This port is for clients only"); } diff --git a/src/s_user.c b/src/s_user.c index 8d9610236..efa0cbb21 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -2959,7 +2959,7 @@ int m_user(cptr, sptr, parc, parv) if (IsServer(cptr) && !IsUnknown(sptr)) return 0; - if (cptr->acpt->umodes & LISTENER_SERVERSONLY) { + if (MyClient(sptr) && (sptr->acpt->umodes & LISTENER_SERVERSONLY)) { return exit_client(cptr, sptr, sptr, "This port is for servers only"); }