summaryrefslogtreecommitdiff
path: root/src/modules/m_sapart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_sapart.cpp')
-rw-r--r--src/modules/m_sapart.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_sapart.cpp b/src/modules/m_sapart.cpp
index fdbbcc102..177a77d9b 100644
--- a/src/modules/m_sapart.cpp
+++ b/src/modules/m_sapart.cpp
@@ -15,9 +15,9 @@ void handle_sapart(char **parameters, int pcnt, userrec *user)
userrec* dest = Srv->FindNick(std::string(parameters[0]));
if (dest)
{
- for (int x = 0; x < strlen(parameters[0]); x++)
+ for (int x = 0; x < strlen(parameters[1]); x++)
{
- if ((parameters[0][0] != '#') || (parameters[0][x] == ' ') || (parameters[0][x]> ','))
+ if ((parameters[1][0] != '#') || (parameters[1][x] == ' ') || (parameters[1][x] == ','))
{
Srv->SendTo(NULL,user,"NOTICE "+std::string(user->nick)+" :*** Invalid characters in channel name");
return;