summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-16 19:57:53 -0400
committerAdam <Adam@anope.org>2013-05-16 19:57:53 -0400
commit3f782d5cad84165d695203977c75d2a3877f4644 (patch)
tree61943af44d45733afe159ba39ad8769a8293face /src/modules.cpp
parentbb962f92ace6eb23c66c5fccee01f825c22363c3 (diff)
Fix m_randquote with 0 quotes
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index a7b3364ae..d25e145e3 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -765,7 +765,7 @@ bool FileReader::Exists()
std::string FileReader::GetLine(int x)
{
- if ((x<0) || ((unsigned)x>fc.size()))
+ if ((x<0) || ((unsigned)x>=fc.size()))
return "";
return fc[x];
}