summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-22 14:38:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-22 14:38:13 +0000
commit8aeb34aa15bfc32e8894c652f09673c2fb27a32f (patch)
treeb0926e540f9b189804c6e033d46bed1351b1009f
parent443016b4f2fccca39755c1d7e33edfe1ec61718f (diff)
Fix to services sending quits with no reasons
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@695 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/InspIRCd.layout28
-rw-r--r--src/commands.cpp4
-rw-r--r--src/modules/m_helpop.cpp2
3 files changed, 19 insertions, 15 deletions
diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout
index 227c6af8f..40f21b210 100644
--- a/src/InspIRCd.layout
+++ b/src/InspIRCd.layout
@@ -13,17 +13,17 @@ LeftChar=1
[Editor_1]
Open=1
Top=0
-CursorCol=99
-CursorRow=1570
-TopLine=1552
+CursorCol=1
+CursorRow=1
+TopLine=1
LeftChar=1
[Editor_2]
Open=1
Top=0
-CursorCol=54
-CursorRow=360
-TopLine=357
+CursorCol=1
+CursorRow=428
+TopLine=377
LeftChar=1
[Editor_3]
@@ -37,8 +37,8 @@ LeftChar=1
[Editor_4]
Open=1
Top=0
-CursorCol=9
-CursorRow=358
+CursorCol=1
+CursorRow=364
TopLine=333
LeftChar=1
@@ -288,9 +288,9 @@ LeftChar=1
[Editor_37]
Open=1
Top=0
-CursorCol=47
-CursorRow=156
-TopLine=139
+CursorCol=3
+CursorRow=178
+TopLine=156
LeftChar=1
[Editor_38]
Open=0
@@ -330,9 +330,9 @@ LeftChar=1
[Editor_43]
Open=1
Top=1
-CursorCol=3
-CursorRow=2166
-TopLine=2146
+CursorCol=45
+CursorRow=2189
+TopLine=2153
LeftChar=1
[Editor_44]
Open=1
diff --git a/src/commands.cpp b/src/commands.cpp
index 0e8d5e872..f8a410dc8 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -2186,6 +2186,10 @@ void handle_link_packet(char* udp_msg, char* tcp_host, serverrec *serv)
}
if (!strcmp(command,"QUIT"))
{
+ if ((!udp_msg) || (!strcmp(data,"")) || (strcmp(data,":")))
+ {
+ strcpy(data,":No reason");
+ }
if (!strcmp(data,":"))
{
strcpy(data,":No reason");
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index 5b4928543..09c8eb636 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -168,7 +168,7 @@ class ModuleHelpop : public Module
virtual void OnWhois(userrec* src, userrec* dst)
{
- if (strchr(src->modes,'h'))
+ if (strchr(dst->modes,'h'))
{
Srv->SendTo(NULL,src,"310 "+std::string(src->nick)+" "+std::string(dst->nick)+" :is available for help.");
}