aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
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 )