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