summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-03-27 02:23:51 -0300
committerTingPing <tngpng@gmail.com>2013-03-27 02:23:51 -0300
commit62c7a743a7f19140c725bac9cfe22862cc236f1e (patch)
treed33e133646afafceb1b14ac951e96f689cdc26a2 /src
parent6ec92de598c1f18e43b0fee7cb31320a37dae7c1 (diff)
Only check for key if there is a channel
Diffstat (limited to 'src')
-rw-r--r--src/common/outbound.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index c543997a..a0daaa9c 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -3102,15 +3102,15 @@ urlserv:
 				*channel = co+1;
 			else
 				*channel = co;
-			
-		}
-		/* check for key - mirc style */
-		co = strchr (co + 1, '?');
-		if (co)
-		{
-			*co = 0;
-			co++;
-			*key = co;
+				
+			/* check for key - mirc style */
+			co = strchr (co + 1, '?');
+			if (co)
+			{
+				*co = 0;
+				co++;
+				*key = co;
+			}	
 		}
 			
 		return TRUE;