mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-02 10:06:39 +02:00
- Fixed botmotd crash due to last change (post-3.2.2).
This commit is contained in:
@@ -445,3 +445,4 @@
|
||||
- Removed an excess space from the SAMODE notice when a mode without a parameter was set
|
||||
(#0002134) reported by Bugz.
|
||||
- Fixed small memory leak on /rehash (post-3.2.2).
|
||||
- Fixed botmotd crash due to last change (post-3.2.2).
|
||||
|
||||
+4
-1
@@ -1356,7 +1356,10 @@ CMD_FUNC(m_botmotd)
|
||||
parv) != HUNTED_ISME)
|
||||
return 0;
|
||||
|
||||
strlcpy(userhost,make_user_host(cptr->user->username, cptr->user->realhost), sizeof userhost);
|
||||
if (!IsPerson(sptr))
|
||||
return 0;
|
||||
|
||||
strlcpy(userhost,make_user_host(sptr->user->username, sptr->user->realhost), sizeof userhost);
|
||||
ptr = Find_tld(sptr, userhost);
|
||||
|
||||
if (ptr)
|
||||
|
||||
Reference in New Issue
Block a user