summaryrefslogtreecommitdiff
path: root/src/modules/m_conn_join.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-06 22:48:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-06 22:48:26 +0000
commit3ed3241a5c38dde202deaa73204fecbe9d12d303 (patch)
tree97aa900f314f63702accbbd1a4a203e23a9738bb /src/modules/m_conn_join.cpp
parentb790abb1545fc22d0f6799f48d4b7df22711db8a (diff)
Fix for bug #237
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6631 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_conn_join.cpp')
-rw-r--r--src/modules/m_conn_join.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_conn_join.cpp b/src/modules/m_conn_join.cpp
index 1736ffa37..6d5c607be 100644
--- a/src/modules/m_conn_join.cpp
+++ b/src/modules/m_conn_join.cpp
@@ -83,7 +83,8 @@ class ModuleConnJoin : public Module
std::vector<std::string> Joinchans;
tokenize(JoinChan,Joinchans);
for(std::vector<std::string>::iterator it = Joinchans.begin(); it != Joinchans.end(); it++)
- chanrec::JoinUser(ServerInstance, user, it->c_str(), false);
+ if (ServerInstance->IsChannel(it->c_str()))
+ chanrec::JoinUser(ServerInstance, user, it->c_str(), false);
}
}