diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-10 03:27:50 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-10 03:27:50 +0100 |
commit | 1f92a5851e0e3b1730e940980f2b0122c506c724 (patch) | |
tree | 0a2f099cb0c24c36eb56fb9f79c5a8dd640abac2 /irc.c | |
parent | 57c96f7be2511a0a50015512dc03a30ba0923862 (diff) |
Restore the storage module.
Diffstat (limited to 'irc.c')
-rw-r--r-- | irc.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -260,6 +260,19 @@ static gboolean irc_free_hashkey( gpointer key, gpointer value, gpointer data ) return( TRUE ); } +/* USE WITH CAUTION! + Sets pass without checking */ +void irc_setpass (irc_t *irc, const char *pass) +{ + g_free (irc->password); + + if (pass) { + irc->password = g_strdup (pass); + } else { + irc->password = NULL; + } +} + static char **irc_splitlines( char *buffer ); void irc_process( irc_t *irc ) |