Changeset 5bf5edf
- Timestamp:
- 2008-02-10T21:54:28Z (17 years ago)
- Branches:
- master
- Children:
- 2a2db6f
- Parents:
- 5d62040
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
otr.c
r5d62040 r5bf5edf 124 124 /* show the list of fingerprints associated with a given context */ 125 125 void show_fingerprints(irc_t *irc, ConnContext *ctx); 126 127 /* to log out accounts during keygen */ 128 extern void cmd_account(irc_t *irc, char **cmd); 126 129 127 130 … … 1122 1125 void otr_keygen(irc_t *irc, const char *handle, const char *protocol) 1123 1126 { 1127 char *account_off[] = {"account", "off", NULL}; 1124 1128 GError *err; 1125 1129 GThread *thr; 1126 1130 struct kgdata *kg; 1127 1131 gint ev; 1128 1129 irc_usermsg(irc, "generating new otr privkey for %s/%s...",1130 handle, protocol);1131 1132 1132 1133 kg = g_new0(struct kgdata, 1); … … 1167 1168 } 1168 1169 1170 /* tell the user what's happening, go comatose, and start the keygen */ 1171 irc_usermsg(irc, "going comatose for otr key generation, this will take a moment"); 1172 irc_usermsg(irc, "all accounts logging out, user commands disabled"); 1173 cmd_account(irc, account_off); 1174 irc_usermsg(irc, "generating new otr privkey for %s/%s...", 1175 handle, protocol); 1176 1169 1177 thr = g_thread_create(&otr_keygen_thread_func, kg, FALSE, &err); 1170 1178 if(!thr) { -
root_commands.c
r5d62040 r5bf5edf 136 136 } 137 137 138 staticvoid cmd_account( irc_t *irc, char **cmd );138 void cmd_account( irc_t *irc, char **cmd ); 139 139 140 140 static void cmd_identify( irc_t *irc, char **cmd ) … … 213 213 } 214 214 215 staticvoid cmd_account( irc_t *irc, char **cmd )215 void cmd_account( irc_t *irc, char **cmd ) 216 216 { 217 217 account_t *a;
Note: See TracChangeset
for help on using the changeset viewer.