equal
deleted
inserted
replaced
197 if (cmd.startsWith(matchMe, Qt::CaseInsensitive)) |
197 if (cmd.startsWith(matchMe, Qt::CaseInsensitive)) |
198 { |
198 { |
199 match = cmd; |
199 match = cmd; |
200 |
200 |
201 // move match to end so next time new matches will be preferred |
201 // move match to end so next time new matches will be preferred |
202 if (m_cmds->removeAll(cmd) > 0); |
202 if (m_cmds->removeAll(cmd) > 0) |
203 m_cmds->append(cmd); |
203 m_cmds->append(cmd); |
204 |
204 |
205 break; |
205 break; |
206 } |
206 } |
207 } |
207 } |
216 { |
216 { |
217 match = nick; |
217 match = nick; |
218 isNick = true; |
218 isNick = true; |
219 |
219 |
220 // move match to end so next time new matches will be prefered |
220 // move match to end so next time new matches will be prefered |
221 if (m_nicks->removeAll(nick) > 0); |
221 if (m_nicks->removeAll(nick) > 0) |
222 m_nicks->append(nick); |
222 m_nicks->append(nick); |
223 |
223 |
224 break; |
224 break; |
225 } |
225 } |
226 } |
226 } |