Skip to content
ClearMSN Connection

error in chat using clearmsn

A TG007 community discussion started by K0rupt.

Discussion 8 posts
Page 1 of 1
Open
Topic #2234 · 8 published posts · 1,467 views

ok im using clearmsn for some reason when someone enters a room..../example welcome nick to hatphoenix instead of ChatPhoenix,whats up with this is there a way to fix this error or would i have to download this connection once again????

 

 

S Tahoma;0 Welcome ·jason· this is the first time you've visited hatSanAntonio Room please enjoy your stay. [this is the problem]

what version of clearmsn are you using, and plz post the code you are using to send the welcome msg. probably what is happening is it's a code that's meant for a connection like vincula which leaves the %# prefix intact on channel names. Clearmsn reduces it to the normal IRC prefix of # so you can use timers without confusing mirc. the code you're using is stripping $chan to return everything but those first 2 prefix characters using $right($chan,-2). but in clearmsn you need to use $right($chan,-1), so it only strips the 1st prefix character.

Edited Dec 16, 2004 2:30 AM by vexation

bfush.PNG

its clearmsn5.4....i didnt add anything to msg the channel,,,,,,it did it on its own,

Edited Dec 16, 2004 3:06 AM by K0rupt

How does something do it on its own??

 

i think what vex means is have a look at your coding for your welcome (in remote scripts) and paste the code from there thats to do with the welcome message.

 

It sounds like you got a file or something loaded into remotes thats making the welcome message start and this in turn is not working well with the connection (i guess )

 

Vex. correct me if im wrong please lol

 

 

 

ok this is what i found it was in History.mrc

#history on
alias -l hfont { return S Tahoma;0 }
alias -l h2font { return S eTahoma;0 }

on *:JOIN:*:{
 if ($nick == $me) || (*! $+ $$ial($nick $+ *,1).addr == $ulist(*! $+ $$ial($nick $+ *,1).addr,shitlist,1)) halt
 if (> isin $nick) goto guest
 if ($$ial($nick $+ *,1).addr == $gettok($read(history.txt, w,* $+ $$ial($nick $+ *,1).addr $+ *),1,32)) { var %line $readn | goto old }
 else { goto new }
 :new {
   msg # $hfont Welcome $nick this is the first time you've visited $replace($right(#,-2),\b,$chr(32)) Room please enjoy your stay. 
   write history.txt $$ial($nick $+ *,1).addr $nick $time $date $chan
   return
 }
 :old {
   if ($nick == $gettok($read(history.txt,%line),2,32)) {
     msg # $hfont Welcome back $nick glad you have returned to $replace($right(#,-2),\b,$chr(32)) Room. You were last here on the $gettok($read(history.txt,%line),4,32) at $gettok($read(history.txt,%line),3,32) $+ . 
     write -l %line history.txt $$ial($nick $+ *,1).addr $nick $time $date $chan
     return
   }
   else {
     msg # $hfont Welcome $nick glad you have returned to $replace($right(#,-2),\b,$chr(32)) Room. 
     msg # $h2font You were last here on the $gettok($read(history.txt,%line),4,32) at $gettok($read(history.txt,%line),3,32) and were known as $gettok($read(history.txt,%line),2,32)) $+ . 
     write -l %line history.txt $$ial($nick $+ *,1).addr $nick $time $date $chan
     return
   }
 }
 :guest {
   msg # $hfont Welcome $replace($nick,>,Guest_) hope you enjoy your stay at $replace($right(#,-2),\b,$chr(32)) Room, hope you get a Passport soon. 
   return
 }
}
#history end

Edited Dec 16, 2004 4:02 AM by K0rupt

the code you're using is stripping $chan to return everything but those first 2 prefix characters using $right($chan,-2). but in clearmsn you need to use $right($chan,-1), so it only strips the 1st prefix character.

 

 

1st of all make a copy of the history.mrc to notepad (just in case)

 

next

 

every time you see

 

$replace($right(#,-2),\b,$chr(32)) 

 

Replace with

 

$right($chan,-1),

 

Example

 

$replace($right(#,-1),\b,$chr(32)) 

 

this should work for you

 

Hope this is of help

 

(Thanks 2 vex for pointing out the fix in earlier post)

 

 

Thanks That Worked Great Now When I Do The Profile Checker..To Echo The Room It Comes Back To Me...It Does Not Msg The Room At All...it dont even MSG the room saying READING SAMS198 PROFILE........ And I was Just Wondering If I Wanted The Profile Reader To Read Peoples Profile Onjoin and msg it to the room how can i make that happend!!!!!

;popups
menu nicklist {
 $iif((($network == MSN) || (G_* iswm $network)) && $$1 != $null,ClearMsn Nick Menu)
 .$iif(($mi isowner $chan || ($mi isop $chan && $$1 !isowner $chan)) || $cpass($chan),Control)
 ..$iif($$1 == $mi && $mi !isowner $chan && $cpass($chan),Host Up):sockwrite -n $sockfind($chan) MODE $me +h $cpass($chan)
 ..$iif($mi isop $chan,$iif($mi isowner $chan,$iif($$1 isowner $chan,$style(1)) $+ Owner)):{ if ($$1 !isowner $chan) sockwrite -n $sockfind($chan) MODE $lcn($chan) +q $rc($$1) }
 ..$iif($mi isop $chan,$iif($$1 isop $chan && $$1 !isowner $chan,$style(1)) $+ Host):sockwrite -n $sockfind($chan) MODE $chan $iif($$1 isowner $chan,-q+o $rc($$1) $rc($$1),$iif($$1 isop $chan,-o $rc($$1),+o $rc($$1)))
 ..$iif($mi isop $chan,$iif(m isin $chan($chan).mode,$iif($$1 isvoice $chan && $$1 !isop $chan,$style(1)),$iif($$1 !isop $chan,$style(1))) $+ Participant):{ if ($$1 isop $chan) || (m isin $chan($chan).mode) sockwrite -n $sockfind($chan) MODE $lcn($chan) $iif($$1 isop $chan,-o) $+ $iif(m isin $chan($chan).mode,+v $rc($$1)) $rc($$1) }
 ..$iif($mi isop $chan,$iif(m isin $chan($chan).mode,$iif($$1 !isvoice $chan && $$1 !isop $chan,$style(1)) $+ Spectator)):sockwrite -n $sockfind($chan) MODE $lcn($chan) -ov $rc($$1) $rc($$1)
 ..-
 ..$iif($$1 == $mi,Add $iif($mi isowner $chan,Owner,Host) Access) $+ :sockwrite -nx $sockfind($chan) ACCESS $chan ADD $iif($mi isowner $chan,OWNER,HOST) $xial($mi) 0 :(ClearMSN|v $+ $cmver $+ )
 ..-
 ..$iif($$1 != $mi,Kick/Ban)
 ...Profanity:kick $chan $$1 Don't say that!!
 ...Scrolling:kick $chan $$1 Don't scroll, bastard.
 ...Parking:kick $chan $$1 NO PARKING!
 ...Disruptive:kick $chan $$1 Disruptive Behavior
 ...Custom Kick/Ban:{ var %km = $$?"Kick Message?" | var %bt = $$?="Minutes to Ban? (0 for Infinite)" | access $chan add deny $xial($$1).addr %bt : $+ %km | kick $chan $$1 %km }
 ..Add to Access
 ...$iif($mi isowner $chan,Owner):access $chan add owner $xial($1).addr 0 :added by ClearMsn $cmver
 ...Host:access $chan add host * $+ $right($xial($1).addr,-1) 0 :added by ClearMsn $cmver
 ...Voice:access $chan add voice * $+ $right($xial($1).addr,-2) 0 :added by ClearMsn $cmver
 ...Grant:access $chan add grant * $+ $right($xial($1).addr,-3) 0 :added by ClearMsn $cmver
 ...Deny:access $chan add deny * $+ $right($xial($1).addr,-4) 0 :added by ClearMsn $cmver
 .CTCP
 ..Time:ctcp $rc($1) time
 ..Ping:ctcp $rc($1) ping
 ..-
 ..Version:ctcp $rc($1) version
 ..Finger:ctcp $rc($1) finger
 ..Vincula:ctcp $rc($1) isitvincula
 ..IRCDom:ctcpreply $rc($1) â€DTäE
 .Profile Reader
 ..Echo:{  rprofx $$1 }
 ..Aloud:{  rprofx $$1 m$chan }
 .View Profile:{ set -u10 %vprof $true | prop $rc($$1) PUID | echo $chan 10» Viewing profile for10 $$1 (open window from switchbar) }
 .User Info:uwho $rc($$1)
 .Encoded Nickname:echo -a _info $str( ,17) › encoded_nickname : $$1 :10 $rc($$1)
 .$iif($sock(msn.look.main),Locate User):cfindu $rc($$1)
}
alias  5  return 4F54494345202472696768742824676574746F6B2824312C312C3333
menu query {
 ClearMsn Whisper Menu
 .CTCP
 ..Time:ctcp $rc($1) time
 ..Ping:ctcp $rc($1) ping
 ..-
 ..Version:ctcp $rc($1) version
 ..Finger:ctcp $rc($1) finger
 ..Vincula:ctcp $rc($1) isitvincula
 ..IRCDom:ctcpreply $rc($1) â€DTäE
 .Profile Reader
 ..Echo:{ rprofx $$1 }
 ..Aloud:{ rprofx $$1  $chan }
 .View Profile:{ set -u10 %vprof $true | prop $rc($$1) PUID | echo $chan 10» Viewing profile for10 $$1 (open window from switchbar) }
 .User Info:uwho $rc($$1)
 .Encoded Nickname:echo -a _info $str( ,17) › encoded_nickname : $$1 :10 $rc($$1)
 .$iif($sock(msn.look.main),Locate User):cfindu $rc($$1)
}

Edited Dec 16, 2004 5:21 PM by K0rupt

if you want it to read the profile aloud on join, use this...

 

on *:join:#:{ rprofx $nick m $chan }

 

but i don't recommend it. the profile reader will flood you out if too many people join at once.

Edited Dec 16, 2004 6:32 PM by vexation

bfush.PNG