added and to predefined alias variables. (needs core restart)
[quassel.git] / src / core / userinputhandler.cpp
index b6a5c69..deddc92 100644 (file)
@@ -360,6 +360,8 @@ void UserInputHandler::expand(const QString &alias, const BufferInfo &bufferInfo
       command = command.replace(QString("$%1").arg(j), params[j - 1]);
     }
     command = command.replace("$0", msg);
       command = command.replace(QString("$%1").arg(j), params[j - 1]);
     }
     command = command.replace("$0", msg);
+    command = command.replace("$channelname", bufferInfo.bufferName());
+    command = command.replace("$currentnick", network()->myNick());
     handleUserInput(bufferInfo, command);
   }
 }
     handleUserInput(bufferInfo, command);
   }
 }