summaryrefslogtreecommitdiff
path: root/modules/m_svsmode.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-29 19:36:51 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-29 19:36:51 +0000
commitcead4299606b2512732879e6d377cdef777dc659 (patch)
tree6e82c5e77655f49be6c9515c63d6ab0a31af5dbd /modules/m_svsmode.c
parent6c9292470dfdd5508a7bc0d28c3702e6188f4575 (diff)
- Finished proper implementation of usermode 'x' (UMODE_HIDDENHOST)
Only services may set a fakehost via SVSMODE. git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2136 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_svsmode.c')
-rw-r--r--modules/m_svsmode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/m_svsmode.c b/modules/m_svsmode.c
index a045aa1..d54f664 100644
--- a/modules/m_svsmode.c
+++ b/modules/m_svsmode.c
@@ -106,8 +106,8 @@ ms_svsmode(struct Client *client_p, struct Client *source_p,
break;
case 'x':
- if (what == MODE_ADD && extarg)
- user_set_hostmask(target_p, extarg);
+ if (!EmptyString(extarg) && valid_hostname(extarg))
+ user_set_hostmask(target_p, extarg, what);
break;
case 'o':