aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-04-10 03:27:50 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-04-10 03:27:50 +0100
commit1f92a5851e0e3b1730e940980f2b0122c506c724 (patch)
tree0a2f099cb0c24c36eb56fb9f79c5a8dd640abac2 /irc.c
parent57c96f7be2511a0a50015512dc03a30ba0923862 (diff)
Restore the storage module.
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/irc.c b/irc.c
index 5173dd9b..4824d0ac 100644
--- a/irc.c
+++ b/irc.c
@@ -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 )