~ubuntu-branches/ubuntu/trusty/quassel/trusty

« back to all changes in this revision

Viewing changes to src/core/corebasichandler.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2013-10-11 00:06:18 UTC
  • mfrom: (1.1.52)
  • Revision ID: package-import@ubuntu.com-20131011000618-46ncwnh3demhlw10
Tags: 0.9.1-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
    list << param;
146
146
    emit putCmd(cmd, list, prefix);
147
147
}
148
 
 
149
 
 
150
 
void CoreBasicHandler::displayMsg(Message::Type msgType, QString target, const QString &text, const QString &sender, Message::Flags flags)
151
 
{
152
 
    IrcChannel *channel = network()->ircChannel(target);
153
 
    if (!channel) {
154
 
        if (!target.isEmpty() && network()->prefixes().contains(target[0]))
155
 
            target = target.mid(1);
156
 
 
157
 
        if (target.startsWith('$') || target.startsWith('#'))
158
 
            target = nickFromMask(sender);
159
 
    }
160
 
 
161
 
    emit displayMsg(msgType, typeByTarget(target), target, text, sender, flags);
162
 
}