diff options
Diffstat (limited to 'ksirc/baserules.cpp')
-rw-r--r-- | ksirc/baserules.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ksirc/baserules.cpp b/ksirc/baserules.cpp index 11e5850c..df4a40cc 100644 --- a/ksirc/baserules.cpp +++ b/ksirc/baserules.cpp @@ -3,15 +3,15 @@ #include "ksopts.h" #include "ksircprocess.h" -#include <qregexp.h> +#include <tqregexp.h> #include <stdio.h> -void KSMBaseRules::sirc_receive(QCString, bool) +void KSMBaseRules::sirc_receive(TQCString, bool) { } -void KSMBaseRules::control_message(int, QString) +void KSMBaseRules::control_message(int, TQString) { } @@ -81,8 +81,8 @@ filterRuleList *KSMBaseRules::defaultRules() frl->append(fr); } if( ksopts->msgContainNick.isValid() ){ - //QString nick = ksopts->nick; - QString nick = ksircProcess()->getNick(); + //TQString nick = ksopts->nick; + TQString nick = ksircProcess()->getNick(); if ( !nick.isEmpty() ) { if(nick.length() > 83){ qDebug("Nick too long"); @@ -92,7 +92,7 @@ filterRuleList *KSMBaseRules::defaultRules() * Since the nick is used in the regex we must * escape all regex words */ - nick = QRegExp::escape(nick); + nick = TQRegExp::escape(nick); sprintf(match_us, "(?i)<\\S+>.*\\s%s(,.*|\02:.*|:.*|\\s.*|$)", nick.latin1()); @@ -107,16 +107,16 @@ filterRuleList *KSMBaseRules::defaultRules() } } if( ksopts->msg1Contain.isValid() ){ - //QString nick = ksopts->nick; + //TQString nick = ksopts->nick; /* * Since the nick is used in the regex we must * escape all regex words */ - QString msg = ksopts->msg1String; + TQString msg = ksopts->msg1String; if(msg.length() > 0){ if(ksopts->msg1Regex == false) - msg = QRegExp::escape(msg); + msg = TQRegExp::escape(msg); snprintf(msg1_match, 100, "(?i)<\\S+>.*\\s%s(,.*|\02:.*|:.*|\\s.*|$)", msg.latin1()); @@ -131,16 +131,16 @@ filterRuleList *KSMBaseRules::defaultRules() } } if( ksopts->msg2Contain.isValid() ){ - //QString nick = ksopts->nick; + //TQString nick = ksopts->nick; /* * Since the nick is used in the regex we must * escape all regex words */ - QString msg = ksopts->msg2String; + TQString msg = ksopts->msg2String; if(msg.length() > 0){ if(ksopts->msg2Regex == false) - msg = QRegExp::escape(msg); + msg = TQRegExp::escape(msg); snprintf(msg2_match, 100, "(?i)<\\S+>.*\\s%s(,.*|\02:.*|:.*|\\s.*|$)", msg.latin1()); |