Index: protocols/jabber/conference.c
===================================================================
--- protocols/jabber/conference.c	(revision 2bebe15b447b84fd5705a021f73db609c336fd73)
+++ protocols/jabber/conference.c	(revision 94acdd0d7beaa659a5f6b26673c5dea5dbcc4496)
@@ -26,5 +26,5 @@
 static xt_status jabber_chat_join_failed( struct im_connection *ic, struct xt_node *node, struct xt_node *orig );
 
-struct groupchat *jabber_chat_join( struct im_connection *ic, char *room, char *nick, char *password )
+struct groupchat *jabber_chat_join( struct im_connection *ic, const char *room, const char *nick, const char *password )
 {
 	struct jabber_chat *jc;
Index: protocols/jabber/jabber.c
===================================================================
--- protocols/jabber/jabber.c	(revision 2bebe15b447b84fd5705a021f73db609c336fd73)
+++ protocols/jabber/jabber.c	(revision 94acdd0d7beaa659a5f6b26673c5dea5dbcc4496)
@@ -425,5 +425,5 @@
 }
 
-static struct groupchat *jabber_chat_join_( struct im_connection *ic, char *room, char *nick, char *password )
+static struct groupchat *jabber_chat_join_( struct im_connection *ic, const char *room, const char *nick, const char *password )
 {
 	if( strchr( room, '@' ) == NULL )
Index: protocols/jabber/jabber.h
===================================================================
--- protocols/jabber/jabber.h	(revision 2bebe15b447b84fd5705a021f73db609c336fd73)
+++ protocols/jabber/jabber.h	(revision 94acdd0d7beaa659a5f6b26673c5dea5dbcc4496)
@@ -240,5 +240,5 @@
 
 /* conference.c */
-struct groupchat *jabber_chat_join( struct im_connection *ic, char *room, char *nick, char *password );
+struct groupchat *jabber_chat_join( struct im_connection *ic, const char *room, const char *nick, const char *password );
 struct groupchat *jabber_chat_by_jid( struct im_connection *ic, const char *name );
 void jabber_chat_free( struct groupchat *c );
Index: protocols/nogaim.c
===================================================================
--- protocols/nogaim.c	(revision 2bebe15b447b84fd5705a021f73db609c336fd73)
+++ protocols/nogaim.c	(revision 94acdd0d7beaa659a5f6b26673c5dea5dbcc4496)
@@ -280,5 +280,5 @@
 		
 		if( set_getbool( &c->set, "auto_join" ) )
-			chat_join( irc, c );
+			chat_join( irc, c, NULL );
 	}
 }
@@ -710,5 +710,5 @@
 }
 
-struct groupchat *imcb_chat_new( struct im_connection *ic, char *handle )
+struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle )
 {
 	struct groupchat *c;
Index: protocols/nogaim.h
===================================================================
--- protocols/nogaim.h	(revision 2bebe15b447b84fd5705a021f73db609c336fd73)
+++ protocols/nogaim.h	(revision 94acdd0d7beaa659a5f6b26673c5dea5dbcc4496)
@@ -209,5 +209,5 @@
 	 * not implement this. */
 	struct groupchat *
-	     (* chat_join)	(struct im_connection *, char *room, char *nick, char *password);
+	     (* chat_join)	(struct im_connection *, const char *room, const char *nick, const char *password);
 	/* Change the topic, if supported. Note that BitlBee expects the IM
 	   server to confirm the topic change with a regular topic change
@@ -290,5 +290,5 @@
  *   the user her/himself. At that point the group chat will be visible to the
  *   user, too. */
-G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, char *handle );
+G_MODULE_EXPORT struct groupchat *imcb_chat_new( struct im_connection *ic, const char *handle );
 G_MODULE_EXPORT void imcb_chat_add_buddy( struct groupchat *b, char *handle );
 /* To remove a handle from a group chat. Reason can be NULL. */
Index: protocols/oscar/oscar.c
===================================================================
--- protocols/oscar/oscar.c	(revision 2bebe15b447b84fd5705a021f73db609c336fd73)
+++ protocols/oscar/oscar.c	(revision 94acdd0d7beaa659a5f6b26673c5dea5dbcc4496)
@@ -2581,5 +2581,5 @@
 }
 
-struct groupchat *oscar_chat_join(struct im_connection * ic, char * room, char * nick, char * password )
+struct groupchat *oscar_chat_join(struct im_connection * ic, const char * room, const char * nick, const char * password )
 {
 	struct oscar_data * od = (struct oscar_data *)ic->proto_data;
