Skip to content
Browse files

Trim spaces from end of commands to autoattach.

  • Loading branch information...
1 parent c646479 commit c86a61239e1dd0ad06feac051a4044bba30ce9bc Alexey Sokolov committed Oct 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/autoattach.cpp
View
4 modules/autoattach.cpp
@@ -70,7 +70,7 @@ class CChanAttach : public CModule {
bool bHelp = false;
bool bNegated = sMsg.TrimPrefix("!");
CString sChan = sMsg.Token(0);
- CString sHost = sMsg.Token(1, true);
+ CString sHost = sMsg.Token(1);
if (sChan.empty()) {
bHelp = true;
@@ -90,7 +90,7 @@ class CChanAttach : public CModule {
CString sMsg = sLine.Token(1, true);
bool bNegated = sMsg.TrimPrefix("!");
CString sChan = sMsg.Token(0);
- CString sHost = sMsg.Token(1, true);
+ CString sHost = sMsg.Token(1);
if (Del(bNegated, sChan, sHost)) {
PutModule("Removed " + sChan + " from list");

0 comments on commit c86a612

Please sign in to comment.
Something went wrong with that request. Please try again.