Changeset devel,68.1.6 for devel/irc.c
- Timestamp:
- 2005-12-08T16:00:08Z (5 years ago)
- branch-nick:
- storage
- revision id:
- jelmer@samba.org-20051208160008-2050290982eca0ca
- Files:
-
- 1 modified
-
devel/irc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
devel/irc.c
r68.1.4 r68.1.6 32 32 GSList *irc_connection_list = NULL; 33 33 34 char *passchange (irc_t *irc, void *set, char *value)35 { 36 setpassnc(irc, value);34 static char *passchange (irc_t *irc, void *set, char *value) 35 { 36 irc_setpass (irc, value); 37 37 return (NULL); 38 38 } … … 266 266 if( global.conf->runmode == RUNMODE_INETD ) 267 267 g_main_quit( global.loop ); 268 } 269 270 /* USE WITH CAUTION! 271 Sets pass without checking */ 272 void irc_setpass (irc_t *irc, const char *pass) 273 { 274 if (irc->password) g_free (irc->password); 275 276 if (pass) { 277 irc->password = g_strdup (pass); 278 irc_usermsg (irc, "Password successfully changed"); 279 } else { 280 irc->password = NULL; 281 } 268 282 } 269 283
