~singpolyma/cheogram

1260ea57ee29f16cfb2586f76276f311ee5561ca — Stephen Paul Weber 3 years ago d46daa6
Don't look for tel when stripping proxy

For /msg command, if the to is a valid JID and the domain part is ==
cheogram.com then just do the proxiedJidToReal and don't try to be nice about
typo'd JIDs with fancy tel detection that can break if the JID has too many
digits but is otherwise not trying to be a tel.
1 files changed, 0 insertions(+), 1 deletions(-)

M Main.hs
M Main.hs => Main.hs +0 -1
@@ 1542,7 1542,6 @@ parseCommand txt room nick componentJid
	| otherwise = Just $ Send txt
	where
	maybeStripProxy jid
		| Just _ <- normalizeTel =<< strNode <$> jidNode jid = jid
		| jidDomain jid == jidDomain (componentJid) = fromMaybe jid $ proxiedJidToReal jid
		| otherwise = jid
	citxt = CI.mk txt