Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/commands.c @ 1631:546868650bbf
Avoid misleading comment when renaming a contact
The previous check assumed that an entry which wasn't in the server roster
was a room -- which is obviously wrong.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 22 Oct 2009 20:08:11 +0200 |
parents | ff22a18abfe6 |
children | a57f2634ee7c |
comparison
equal
deleted
inserted
replaced
1630:141ae278e769 | 1631:546868650bbf |
---|---|
2009 | 2009 |
2010 if (!(type & ROSTER_TYPE_GROUP) && !on_srv) { | 2010 if (!(type & ROSTER_TYPE_GROUP) && !on_srv) { |
2011 scr_LogPrint(LPRINT_NORMAL, | 2011 scr_LogPrint(LPRINT_NORMAL, |
2012 "Note: this item will be added to your server roster."); | 2012 "Note: this item will be added to your server roster."); |
2013 // If this is a MUC room w/o bookmark, let's give a small hint... | 2013 // If this is a MUC room w/o bookmark, let's give a small hint... |
2014 if (!xmpp_is_bookmarked(bjid)) { | 2014 if ((type & ROSTER_TYPE_ROOM) && !xmpp_is_bookmarked(bjid)) { |
2015 scr_LogPrint(LPRINT_NORMAL, | 2015 scr_LogPrint(LPRINT_NORMAL, |
2016 "You should add a room bookmark or it will not be " | 2016 "You should add a room bookmark or it will not be " |
2017 "recognized as a MUC room next time you run mcabber."); | 2017 "recognized as a MUC room next time you run mcabber."); |
2018 } | 2018 } |
2019 } | 2019 } |