Bug 137779 - konversation ignores aliases during connect (called by 'commands' option in network tab)
Summary: konversation ignores aliases during connect (called by 'commands' option in n...
Status: RESOLVED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-23 17:17 UTC by Kevin Funk
Modified: 2006-11-23 19:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Funk 2006-11-23 17:17:13 UTC
Version:           1.0.1 (using KDE 3.5.5, Gentoo)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.17.13

Konversation does not recognize my aliases i've set up in the options during connect.
I use the alias in the network tab where it should be executed at connect time.
Instead, it drops an "Unknown command" error.
Running the alias manually works fine.
Thanks
Comment 1 Eike Hein 2006-11-23 19:00:28 UTC
SVN commit 607213 by hein:

Support command aliases in network connect commands.
BUG:137779


 M  +1 -0      ChangeLog  
 M  +2 -1      src/server.cpp  


--- trunk/extragear/network/konversation/ChangeLog #607212:607213
@@ -43,6 +43,7 @@
   position rather than the end of the input line contents.
 - Fixed bug leading to crash upon initiating DCC Chat when "Focus new tabs"
   was enabled.
+- Support command aliases in network connect commands.
 -------------------------------------------------------------------------------
 
 Changes from 1.0 to 1.0.1
--- trunk/extragear/network/konversation/src/server.cpp #607212:607213
@@ -974,7 +974,8 @@
         {
             QString output(*iter);
             output = output.simplifyWhiteSpace();
-            Konversation::OutputFilterResult result = outputFilter->parse(getNickname(),output,QString::null);
+            getOutputFilter()->replaceAliases(output);
+            Konversation::OutputFilterResult result = getOutputFilter()->parse(getNickname(),output,QString::null);
             queue(result.toServer);
         }
     }