summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hashcomp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index b26fd0841..0188f82b6 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -427,7 +427,8 @@ long irc::portparser::GetToken()
}
else
{
- return 0;
+ /* Assume its just the one port */
+ return atoi(sbegin.c_str());
}
}
else