[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Konversation] ea2cd91: * Implement support for 477 ERR_NOCHANMODES *
From:       Peter Simonsson <peter.simonsson () gmail ! com>
Date:       2010-07-01 13:27:37
Message-ID: 20100701132737.79B45BB5676 () projects ! kde ! org
[Download RAW message or body]

commit ea2cd919d151483eb045e09b01634ff907efe8a1
Author: Peter Simonsson <peter.simonsson@gmail.com>
Date:   Mon Jul 12 13:26:48 2004 +0000

    * Implement support for 477 ERR_NOCHANMODES
    * Treat unknown commands as scripts
    
    svn path=/trunk/kdeextragear-2/konversation/; revision=328279

diff --git a/konversation/errorcodes.h b/konversation/errorcodes.h
index e1846b3..8f0b1ba 100644
--- a/konversation/errorcodes.h
+++ b/konversation/errorcodes.h
@@ -138,6 +138,7 @@
 #define ERR_INVITEONLYCHAN     473
 #define ERR_BANNEDFROMCHAN     474
 #define ERR_BADCHANNELKEY      475
+#define ERR_NOCHANMODES        477
 #define ERR_NOPRIVILEGES       481
 #define ERR_CHANOPRIVSNEEDED   482
 #define ERR_CANTKILLSERVER     483
diff --git a/konversation/inputfilter.cpp b/konversation/inputfilter.cpp
index e326e38..b035334 100644
--- a/konversation/inputfilter.cpp
+++ b/konversation/inputfilter.cpp
@@ -9,6 +9,7 @@
   inputfilter.cpp  -  description
   begin:     Fri Jan 25 2002
   copyright: (C) 2002 by Dario Abatianni
+             (C) 2004 by Peter Simonsson
   email:     eisfuchs@tigress.com
 */
 
@@ -1274,6 +1275,11 @@ void InputFilter::parseServerCommand(const QString &prefix, const QString &comma
 
           break;
         }
+      case ERR_NOCHANMODES:
+        {
+          server->getChannelByName(parameterList[1])->appendServerMessage(i18n("Channel"), trailing);
+          break;
+        }
       default:
         {
           // All yet unknown messages go into the frontmost window without the
diff --git a/konversation/outputfilter.cpp b/konversation/outputfilter.cpp
index 7ab5aca..ee7e64d 100644
--- a/konversation/outputfilter.cpp
+++ b/konversation/outputfilter.cpp
@@ -215,8 +215,8 @@ QString& OutputFilter::parse(const QString& myNick,const QString& originalLine,c
     
     else if(line == "prefs")             parsePrefs(QString::null);
     
-    // Forward unknown commands to server
-    else toServer=inputLine.mid(1);
+    // Try if unknown command is a script...
+    else parseExec(inputLine.mid(1));
   }
   // Ordinary message to channel/query?
   else if(!destination.isEmpty())
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic