Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/commands.c @ 1395:d431cd75eb53
Use bookmarked nickname when manually joining a room
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 10 Dec 2007 21:45:24 +0100 |
parents | 3d4963c8ce87 |
children | 0cb4361c85a7 |
comparison
equal
deleted
inserted
replaced
1394:bba74a50dedf | 1395:d431cd75eb53 |
---|---|
2067 } | 2067 } |
2068 | 2068 |
2069 // If no nickname is provided with the /join command, | 2069 // If no nickname is provided with the /join command, |
2070 // we try to get a default nickname. | 2070 // we try to get a default nickname. |
2071 if (!nick || !*nick) | 2071 if (!nick || !*nick) |
2072 nick = default_muc_nickname(); | 2072 nick = default_muc_nickname(roomname); |
2073 else | 2073 else |
2074 nick = to_utf8(nick); | 2074 nick = to_utf8(nick); |
2075 // If we still have no nickname, give up | 2075 // If we still have no nickname, give up |
2076 if (!nick || !*nick) { | 2076 if (!nick || !*nick) { |
2077 scr_LogPrint(LPRINT_NORMAL, "Please specify a nickname."); | 2077 scr_LogPrint(LPRINT_NORMAL, "Please specify a nickname."); |