summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspircd.cpp2
-rw-r--r--src/modules/m_sajoin.cpp4
-rw-r--r--src/modules/m_sapart.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index d4095132b..983f10a06 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2988,7 +2988,7 @@ int loop_call(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start
param = plist+i+1;
if (j>20)
{
- WriteServ(user->fd,"407 %s :Too many targets in list, message not delivered.",blog[j-1]);
+ WriteServ(u->fd,"407 %s %s :Too many targets in list, message not delivered.",u->nick,blog[j-1]);
return 1;
}
}
diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp
index e687e474d..deea7abd4 100644
--- a/src/modules/m_sajoin.cpp
+++ b/src/modules/m_sajoin.cpp
@@ -16,9 +16,9 @@ void handle_sajoin(char **parameters, int pcnt, userrec *user)
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;
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;