summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd_who.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp
index ff29447fb..df209991a 100644
--- a/src/cmd_who.cpp
+++ b/src/cmd_who.cpp
@@ -88,7 +88,13 @@ bool cmd_who::whomatch(userrec* user, const char* matchtext)
else
{
if (opt_port)
- port = (user->GetPort() == ConvToInt(matchtext));
+ {
+ irc::portparser portrange(matchtext, false);
+ long portno = -1;
+ while ((portno = portrange.GetToken()))
+ if (portno == user->GetPort())
+ port = true;
+ }
else
{
if (opt_away)