summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-18 21:28:40 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-18 21:28:40 +0000
commit403d826a8b6b94e7cfe7d4cffbbc9a843fbea66b (patch)
treefb3cdfbf80d732da30db71ff6f946cb8976ed08b
parent22666c2c6b1efb6423261ae2edf847797face1c8 (diff)
Add another trim() to outgoing metadata accountname. *needs test*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6812 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_services_account.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp
index dc10d9408..8f5b830f2 100644
--- a/src/modules/m_services_account.cpp
+++ b/src/modules/m_services_account.cpp
@@ -235,6 +235,9 @@ class ModuleServicesAccount : public Module
user->GetExt("accountname", account);
if (account)
{
+ // atheme puts a space on this at logout, trim it
+ trim(*account);
+
// call this function in the linking module, let it format the data how it
// sees fit, and send it on its way. We dont need or want to know how.
proto->ProtoSendMetaData(opaque,TYPE_USER,user,extname,*account);