- Timestamp:
- 2010-08-23T23:12:24Z (14 years ago)
- Branches:
- master
- Children:
- ad2d8bc
- Parents:
- 237eadd (diff), eb6df6a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
storage.c
r237eadd rbe999a5 28 28 #define BITLBEE_CORE 29 29 #include "bitlbee.h" 30 #include "otr.h" 30 31 31 32 extern storage_t storage_text; … … 114 115 115 116 status = st->load(irc, password); 116 if (status == STORAGE_OK) 117 if (status == STORAGE_OK) { 118 otr_load(irc); 117 119 return status; 118 120 } 119 121 if (status != STORAGE_NO_SUCH_USER) 120 122 return status; … … 137 139 return STORAGE_NO_SUCH_USER; 138 140 } 139 141 142 otr_save(irc); 140 143 st = ((storage_t *)global.storage->data)->save(irc, overwrite); 141 144 … … 163 166 ret = status; 164 167 } 168 if (ret == STORAGE_OK) { 169 otr_remove(nick); 170 } 165 171 166 172 return ret; … … 176 182 storage_t *primary_storage = gl->data; 177 183 irc_t *irc; 178 184 179 185 /* First, try to rename in the current write backend, assuming onick 180 186 * is stored there */ 181 187 status = primary_storage->rename(onick, nnick, password); 182 if (status != STORAGE_NO_SUCH_USER) 188 if (status != STORAGE_NO_SUCH_USER) { 189 otr_rename(onick, nnick); 183 190 return status; 191 } 184 192 185 193 /* Try to load from a migration backend and save to the current backend. … … 205 213 206 214 storage_remove(onick, password); 215 otr_rename(onick, nnick); 207 216 208 217 return STORAGE_OK;
Note: See TracChangeset
for help on using the changeset viewer.